com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class XlsFormat

    • Constructor Detail

      • XlsFormat

        public XlsFormat(String fileName)

        Initializes a new instance of the XlsFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create an XlsFormat instance.
      • XlsFormat

        public XlsFormat(String fileName,
                 LoadOptions loadOptions)

        Initializes a new instance of the XlsFormat class.

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

        public XlsFormat(InputStream input)

        Initializes a new instance of the XlsFormat class.

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

        public XlsFormat(InputStream input,
                 LoadOptions loadOptions)

        Initializes a new instance of the XlsFormat class.

        Parameters:
        input - A stream that contains the data for this XlsFormat.
        loadOptions - Additional options to use when loading a document.
    • Method Detail

      • getType

        public int getType()

        Gets the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • 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.
      • hasDigitalSignatures

        public final boolean hasDigitalSignatures()

        Gets gets a value indicating whether the document has digital signatures.

        Specified by:
        hasDigitalSignatures in interface ISignedFormat
        Returns:
        true if the document has digital signatures; otherwise, false.
      • cleanMetadata

        public void cleanMetadata()

        Removes metadata found in the document.


        This feature is not available in trial mode.

        Overrides:
        cleanMetadata in class FormatBase
      • addContentTypeProperties

        public final void addContentTypeProperties(XlsContentProperty[] properties)

        Adds a set of content type properties to the document.

        Parameters:
        properties - An array of properties.


        This feature is not available in trial mode.

      • addContentTypeProperty

        public final void addContentTypeProperty(XlsContentProperty property)

        Adds a content type property to the document.

        Parameters:
        property - A content type property.


        This feature is not available in trial mode.

      • clearContentTypeProperties

        public final void clearContentTypeProperties()

        Removes all content type properties. Not supported for the ODS format.


        This feature is not available in trial mode.

      • 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.