public interface IDocumentInfo
Common interface for all file metadata wrappers
Modifier and Type | Method and Description |
---|---|
IDocumentFormat |
getFormat()
Returns a document format
|
int |
getPageCount()
In implementing type should return count (number) of pages or other
similar format-dependent entities (tabs, slides etc.).
|
long |
getSize()
Document size in bytes
|
boolean |
isEncrypted()
Indicates whether specific file is encrypted and requires password for
opening.
|
IDocumentFormat getFormat()
Returns a document format
int getPageCount()
In implementing type should return count (number) of pages or other similar format-dependent entities (tabs, slides etc.). For those family types, that don't have something similar (like plain text documents or XML) should return 1.
long getSize()
Document size in bytes
boolean isEncrypted()
Indicates whether specific file is encrypted and requires password for opening. For the document types, that cannot be encrypted (like all text-based) should always return 'false'.