com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class OneNoteFormat

    • Constructor Detail

      • OneNoteFormat

        public OneNoteFormat(String fileName)

        Initializes a new instance of the OneNoteFormat class.

        Parameters:
        fileName - The file name.
      • OneNoteFormat

        public OneNoteFormat(String fileName,
                     LoadOptions loadOptions)

        Initializes a new instance of the OneNoteFormat class.

        Parameters:
        fileName - The absolute path to the file.
        loadOptions - Additional options to use when loading the document.
      • OneNoteFormat

        public OneNoteFormat(InputStream input)

        Initializes a new instance of the OneNoteFormat class.

        Parameters:
        input - The input.
      • OneNoteFormat

        public OneNoteFormat(InputStream input,
                     LoadOptions loadOptions)

        Initializes a new instance of the OneNoteFormat class.

        Parameters:
        input - The stream containing the file.
        loadOptions - Additional options to use when loading the document.
    • Method Detail

      • isProtected

        public final boolean isProtected()

        Returns true if the document is encrypted and requires a password to open.

        Specified by:
        isProtected in interface IProtectableFormat
        Returns:
        true if document is protected; otherwise, false.
      • getType

        public int getType()

        Gets document type.

        Specified by:
        getType in class FormatBase
        Returns:
        Document type.
      • getPages

        public final OneNotePageInfo[] getPages()

        Gets array of OneNotePageInfo presented in document.

        Returns:
        Returns array of OneNotePageInfo.
      • cleanMetadata

        public void cleanMetadata()

        Removes (resets) metadata.


        This feature is not available in trial mode.

        Overrides:
        cleanMetadata in class FormatBase
      • dispose

        protected void dispose(boolean disposing)

        Releases unmanaged and optionally managed resources.

        Overrides:
        dispose in class FormatBase
        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.