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 - Absolute path to the file.
      • XlsFormat

        public XlsFormat(InputStream input)

        Initializes a new instance of the XlsFormat class.

        Parameters:
        input - The input.
    • Method Detail

      • getType

        public int getType()

        Gets document type.

        Value: Document type.
        Specified by:
        getType in class FormatBase
      • isProtected

        public final boolean isProtected()

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

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

        public final boolean hasDigitalSignatures()

        Gets true if document contains DigitalSignature.

        Specified by:
        hasDigitalSignatures in interface ISignedFormat
        Throws:
        GroupDocsException - Could not read digital signatures. Value: true if document has digital signatures; otherwise, false.
      • cleanMetadata

        public void cleanMetadata()

        Removes (reset) metadata. In some cases(Doc, Xls, Ppt, Pdf) metadata could not be deleted.


        This feature is not available in trial mode.

        Overrides:
        cleanMetadata in class FormatBase
      • addContentTypeProperties

        public final void addContentTypeProperties(XlsContentProperty[] properties)

        Adds the content type properties.

        Parameters:
        properties - Array of properties.


        This feature is not available in trial mode.

        Throws:
        ArgumentNullException - Properties could not be null.
      • addContentTypeProperty

        public final void addContentTypeProperty(XlsContentProperty property)

        Adds the content type property.

        Parameters:
        property - Content type property.


        This feature is not available in trial mode.

        Throws:
        ArgumentNullException - Property could not be null.
      • clearContentTypeProperties

        public final void clearContentTypeProperties()

        Removes all content type properties. Not supported in ODS format.


        This feature is not available in trial mode.