com.aspose.note.revision

Interfaces

Classes

com.aspose.note.revision

Class FileNodeHeader

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static byte HeaderSize
      Header size in bytes.
    • Constructor Summary

      Constructors 
      Constructor and Description
      FileNodeHeader(long fileNodeId, long size, byte stpFormat, byte cbFormat, byte baseType)
      Initializes a new instance of the FileNodeHeader class.
      FileNodeHeader(long fileNodePosition, long fileNodeId, long size, byte stpFormat, byte cbFormat, byte baseType, boolean reserved)
      Initializes a new instance of the FileNodeHeader class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(FileNodeHeader other)
      The equals.
      byte getBaseType()
      It specified by fnd contains a FileNodeChunkReference structure 0 -> does not reference other data; 1 -> contains a reference to data; 2 -> contains a reference to a file node list;
      byte getCbFormat()
      Gets the size and format of the FileNodeChunkReference.cb field specified by the fnd field if this FileNode structure has a BaseType field value equal to 1 or 2.
      long getFileNodeId()
      Gets the type of this FileNode
      long getFileNodePosition()
      Gets the file node's offset from the begin of file.
      boolean getReserved()
      MUST be true, and MUST be ignored.
      long getSize()
      Gets the size, in bytes, of this FileNode
      byte getStpFormat()
      Gets the size and format of the FileNodeChunkReference.stp field
      long getStructSize()
      Gets the struct size.
      byte[] toByteArray()
      The to byte array.
      String toString()
      The to string.
      • Methods inherited from interface com.aspose.ms.System.IEquatable

        equals
    • Field Detail

      • HeaderSize

        public static final byte HeaderSize

        Header size in bytes. FileNodeID(10bits) + Size(13 bits) + StpFormat(2 bits) + CbFormat(2 bits) + BaseType(4 bits) + Reserved(1 bit) = 4 bytes.

        See Also:
        Constant Field Values
    • Constructor Detail

      • FileNodeHeader

        public FileNodeHeader(long fileNodePosition,
                              long fileNodeId,
                              long size,
                              byte stpFormat,
                              byte cbFormat,
                              byte baseType,
                              boolean reserved)

        Initializes a new instance of the FileNodeHeader class.

        Parameters:
        fileNodePosition - The file node position.
        fileNodeId - The file node id.
        size - The size.
        stpFormat - The stp format.
        cbFormat - The cb format.
        baseType - The base type.
        reserved - The reserved.
      • FileNodeHeader

        public FileNodeHeader(long fileNodeId,
                              long size,
                              byte stpFormat,
                              byte cbFormat,
                              byte baseType)

        Initializes a new instance of the FileNodeHeader class.

        Parameters:
        fileNodeId - The file node id.
        size - The size.
        stpFormat - The stp format.
        cbFormat - The cb format.
        baseType - The base type.
    • Method Detail

      • getBaseType

        public byte getBaseType()

        It specified by fnd contains a FileNodeChunkReference structure 0 -> does not reference other data; 1 -> contains a reference to data; 2 -> contains a reference to a file node list;

      • getCbFormat

        public byte getCbFormat()

        Gets the size and format of the FileNodeChunkReference.cb field specified by the fnd field if this FileNode structure has a BaseType field value equal to 1 or 2. MUST be 0 and MUST be ignored if BaseType of this FileNode structure is equal to 0 0 -> 4 bytes, uncompressed; 1 -> 8 bytes, uncompressed; 2 -> 1 byte, compressed; 3 -> 2 bytes, compressed;

      • getFileNodeId

        public long getFileNodeId()

        Gets the type of this FileNode

      • getFileNodePosition

        public long getFileNodePosition()

        Gets the file node's offset from the begin of file.

      • getReserved

        public boolean getReserved()

        MUST be true, and MUST be ignored.

      • getSize

        public long getSize()

        Gets the size, in bytes, of this FileNode

      • getStpFormat

        public byte getStpFormat()

        Gets the size and format of the FileNodeChunkReference.stp field

      • equals

        public boolean equals(FileNodeHeader other)

        The equals.

        Parameters:
        other - The other.
        Returns:
        The bool.
      • toString

        public String toString()

        The to string.

        Overrides:
        toString in class Object
        Returns:
        The string.
      • toByteArray

        public byte[] toByteArray()

        The to byte array.

        Specified by:
        toByteArray in interface IBinarySerializable
        Returns:
        The T:byte[].
        Throws:
        com.aspose.ms.System.InvalidOperationException