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 - A string that contains the full name of the file from which to create a OneNoteFormat instance.
      • OneNoteFormat

        public OneNoteFormat(String fileName,
                     LoadOptions loadOptions)

        Initializes a new instance of the OneNoteFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create a OneNoteFormat instance.
        loadOptions - Additional options to use when loading a document.
      • OneNoteFormat

        public OneNoteFormat(InputStream input)

        Initializes a new instance of the OneNoteFormat class.

        Parameters:
        input - A stream that contains the data for this OneNoteFormat.
      • OneNoteFormat

        public OneNoteFormat(InputStream input,
                     LoadOptions loadOptions)

        Initializes a new instance of the OneNoteFormat class.

        Parameters:
        input - A stream that contains the data for this OneNoteFormat.
        loadOptions - Additional options to use when loading a 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 the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • getPages

        public final OneNotePageInfo[] getPages()

        Gets an array of the pages extracted from the loaded section.

        Returns:
        An array of the pages extracted from the loaded section.
      • cleanMetadata

        public void cleanMetadata()

        Removes metadata found in the document.


        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.