public class DocumentInfo extends Object implements IDocumentInfo
Defines document description properties.
| Modifier | Constructor and Description |
|---|---|
|
DocumentInfo(FileType fileType,
IPageInfo[] pages,
long size)
Initializes new instance of
DocumentInfo class. |
|
DocumentInfo(int index,
InputStream stream,
FileType fileType,
String password)
Initializes new instance of
DocumentInfo class. |
|
DocumentInfo(int index,
InputStream stream,
FileType fileType,
String password,
IPageInfo[] pages,
long size)
Initializes new instance of
DocumentInfo class. |
protected |
DocumentInfo(com.aspose.ms.System.Runtime.Serialization.SerializationInfo info,
com.aspose.ms.System.Runtime.Serialization.StreamingContext context)
Initializes new instance of
DocumentInfo class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
The document index.
|
int |
getPageCount()
The document pages count.
|
IPageInfo[] |
getPages()
Defines document pages collection.
|
String |
getPassword()
The document password.
|
long |
getSize()
Document size in bytes
|
InputStream |
getStream()
The document stream.
|
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 DocumentInfo(int index,
InputStream stream,
FileType fileType,
String password)
Initializes new instance of DocumentInfo class.
index - stream - fileType - The type of the file.password - NullPointerException - Thrown when fileType is null.public DocumentInfo(int index,
InputStream stream,
FileType fileType,
String password,
IPageInfo[] pages,
long size)
Initializes new instance of DocumentInfo class.
index - stream - fileType - The type of the file.password - 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.protected DocumentInfo(com.aspose.ms.System.Runtime.Serialization.SerializationInfo info,
com.aspose.ms.System.Runtime.Serialization.StreamingContext context)
Initializes new instance of DocumentInfo class.
NullPointerException - Thrown when info is null.NullPointerException - Thrown when context is null.public final int getIndex()
The document index.
public final int getPageCount()
The document pages count.
getPageCount in interface IDocumentInfopublic final IPageInfo[] getPages()
Defines document pages collection.
getPages in interface IDocumentInfopublic final String getPassword()
The document password.
public final long getSize()
Document size in bytes
getSize in interface IDocumentInfopublic final InputStream getStream()
The document stream.
public final FileType getType()
Gets the file type.
getType in interface IDocumentInfoCopyright © 2024. All rights reserved.