DocumentInfo
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.merger.domain.result.IDocumentInfo
public class DocumentInfo implements IDocumentInfo
Defines document description properties.
| Constructor | Description |
|---|---|
| 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. |
| DocumentInfo(FileType fileType, IPageInfo[] pages, long size) | Initializes new instance of DocumentInfo class. |
| Method | Description |
|---|---|
| getIndex() | The document index. |
| getStream() | The document stream. |
| getPassword() | The document password. |
| getType() | Gets the file type. |
| getPages() | Defines document pages collection. |
| getPageCount() | The document pages count. |
| getSize() | Document size in bytes |
| toString() | Returns a string that represents the current object. |
public DocumentInfo(int index, InputStream stream, FileType fileType, String password)
Initializes new instance of DocumentInfo class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | |
| stream | java.io.InputStream | |
| fileType | FileType | The type of the file. |
| password | java.lang.String |
DocumentInfo(int index, InputStream stream, FileType fileType, String password, IPageInfo[] pages, long size)
public DocumentInfo(int index, InputStream stream, FileType fileType, String password, IPageInfo[] pages, long size)
Initializes new instance of DocumentInfo class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | |
| stream | java.io.InputStream | |
| fileType | FileType | The type of the file. |
| password | java.lang.String | |
| pages | IPageInfo[] | The list of pages to view. |
| size | long | The size of the file. |
public DocumentInfo(FileType fileType, IPageInfo[] pages, long size)
Initializes new instance of DocumentInfo class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileType | FileType | The type of the file. |
| pages | IPageInfo[] | The list of pages to view. |
| size | long | The size of the file. |
public final int getIndex()
The document index.
Returns: int
public final InputStream getStream()
The document stream.
Returns: java.io.InputStream
public final String getPassword()
The document password.
Returns: java.lang.String
public final FileType getType()
Gets the file type.
Returns: FileType
public final IPageInfo[] getPages()
Defines document pages collection.
Returns: com.groupdocs.merger.domain.result.IPageInfo[]
public final int getPageCount()
The document pages count.
Returns: int
public final long getSize()
Document size in bytes
Returns: long
public String toString()
Returns a string that represents the current object.
Returns: java.lang.String - A string that represents the current object.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.