public abstract class DocumentInfo extends Object implements IDocumentInfo
| Modifier and Type | Field and Description |
|---|---|
protected Date |
creationDate |
protected int |
pagesCount |
| Modifier | Constructor and Description |
|---|---|
protected |
DocumentInfo(FileType format,
long size)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreationDate()
Document creation date
|
String |
getFormat()
Document format
|
int |
getPagesCount()
Document pages count.
|
String |
getProperty(String propertyName)
Get value for a property provided as a key
|
List<String> |
getPropertyNames()
List of all properties which could be get for the current document info
|
long |
getSize()
Document size in bytes
|
protected Date creationDate
protected int pagesCount
protected DocumentInfo(FileType format, long size)
format - formatsize - sizepublic Date getCreationDate()
getCreationDate in interface IDocumentInfopublic String getFormat()
getFormat in interface IDocumentInfopublic int getPagesCount()
getPagesCount in interface IDocumentInfopublic String getProperty(String propertyName)
getProperty in interface IDocumentInfopropertyName - property namepublic List<String> getPropertyNames()
getPropertyNames in interface IDocumentInfopublic long getSize()
getSize in interface IDocumentInfoCopyright © 2024. All rights reserved.