TextualDocumentInfo

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.editor.metadata.IDocumentInfo

public class TextualDocumentInfo implements IDocumentInfo

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

Methods

Method Description
getFormat() Returns a format of this textual document.
getPageCount() Always returns 1
getSize() Returns size in bytes (not the number of characters) of this textual document
isEncrypted() Always returns ‘false’, as textual documents cannot be encrypted.
getEncoding() Returns detected presumable encoding of the text document

getFormat()

public final TextualFormats getFormat()

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

Returns: TextualFormats

getPageCount()

public final int getPageCount()

Always returns 1

Returns: int

getSize()

public final long getSize()

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

Returns: long

isEncrypted()

public final boolean isEncrypted()

Always returns ‘false’, as textual documents cannot be encrypted.

Returns: boolean

getEncoding()

public final Charset getEncoding()

Returns detected presumable encoding of the text document

Returns: java.nio.charset.Charset