public class DocumentInfo extends Object implements IDocumentInfo
Defines document description properties.
Constructor and Description |
---|
DocumentInfo(FileType fileType,
IPageInfo[] pages,
long size)
Initializes new instance of
DocumentInfo class. |
Modifier and Type | Method and Description |
---|---|
int |
getPageCount()
The document pages count.
|
IPageInfo[] |
getPages()
Defines document pages collection.
|
long |
getSize()
Document size in bytes
|
FileType |
getType()
Gets the file type.
|
String |
toString()
Returns a string that represents the current object.
|
public DocumentInfo(FileType fileType, IPageInfo[] pages, long size)
Initializes new instance of DocumentInfo
class.
fileType
- The type of the file.pages
- The list of pages to view.size
- The size of the file.NullPointerException
- Thrown when fileType
is null.NullPointerException
- Thrown when pages
is null.public final int getPageCount()
The document pages count.
getPageCount
in interface IDocumentInfo
public final IPageInfo[] getPages()
Defines document pages collection.
getPages
in interface IDocumentInfo
public final long getSize()
Document size in bytes
getSize
in interface IDocumentInfo
public final FileType getType()
Gets the file type.
getType
in interface IDocumentInfo