com.groupdocs.editor.metadata

Class TextualDocumentInfo

  • All Implemented Interfaces:
    IDocumentInfo


    public class TextualDocumentInfo
    extends com.aspose.ms.lang.Struct<TextualDocumentInfo>
    implements IDocumentInfo

    Represents metadata of one textual document like XML, HTML or plain text (TXT)

    • Constructor Detail

      • TextualDocumentInfo

        public TextualDocumentInfo()
      • TextualDocumentInfo

        public TextualDocumentInfo(TextualFormats format,
                           long size,
                           com.aspose.ms.System.Text.Encoding encoding)
    • Method Detail

      • getEncoding

        public final Charset getEncoding()

        Returns detected presumable encoding of the text document

      • getEncodingInternal

        public com.aspose.ms.System.Text.Encoding getEncodingInternal()
      • getFormat

        public final TextualFormats getFormat()

        Returns a format of this textual document. May be not 100% correct in some cases.

        Specified by:
        getFormat in interface IDocumentInfo
        Returns:
      • getPageCount

        public final int getPageCount()

        Always returns 1

        Specified by:
        getPageCount in interface IDocumentInfo
        Returns:
      • getSize

        public final long getSize()

        Returns size in bytes (not the number of characters) of this textual document

        Specified by:
        getSize in interface IDocumentInfo
        Returns:
      • isEncrypted

        public final boolean isEncrypted()

        Always returns 'false', as textual documents cannot be encrypted.

        Specified by:
        isEncrypted in interface IDocumentInfo
        Returns: