com.aspose.note.revision

Interfaces

Classes

com.aspose.note.revision

Class TransactionLog

    • Constructor Detail

      • TransactionLog

        public TransactionLog()
    • Method Detail

      • getTransactionCount

        public long getTransactionCount()

        Gets the number of transactions.

      • addEntry

        public void addEntry(long srcId,
                             long transactionEntrySwitch)

        Add the new entry.

        Parameters:
        srcId - Gets the identity of the file node list modified by this transaction, or the sentinel entry for the transaction. A value of 0x00000001 specifies the sentinel entry. Otherwise, MUST be equal to the value of the FileNodeListFragment.header.FileNodeListID field of a file node list in the file.
        transactionEntrySwitch - 0x00000001(1) -> MUST be equal to CRC of all TransactionEntry structures in the current transaction. other -> must be equal to the new number of FileNode structures in the file node list with a FileNodeListFragment.header.FileNodeListID field value equal to the value of the CRC ID field after the file node list is added or modified by the transaction.
      • getCountById

        public long getCountById(long fileNodeListId)

        Get number of FileNode items in FileNodeList.

        Parameters:
        fileNodeListId - Id (e.g. FileNodeListFragment.header.FileNodeListID) of a file node list in the file.
        Returns:
        Number of FileNode items in FileNodeList.
      • toByteArray

        public byte[] toByteArray()

        The to byte array.

        Specified by:
        toByteArray in interface IBinarySerializable
        Returns:
        The T:byte[].
        Throws:
        com.aspose.ms.System.InvalidOperationException - Incorrect buffer size.
      • equals

        public boolean equals(TransactionLog other)

        The equals.

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