DocumentInfo
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.merger.domain.result.IDocumentInfo
public class DocumentInfo implements IDocumentInfo
Defines document description properties.
Constructors
| 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. |
Methods
| 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. |
DocumentInfo(int index, InputStream stream, FileType fileType, String password)
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. |
DocumentInfo(FileType fileType, IPageInfo[] pages, long size)
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. |
getIndex()
public final int getIndex()
The document index.
Returns: int
getStream()
public final InputStream getStream()
The document stream.
Returns: java.io.InputStream
getPassword()
public final String getPassword()
The document password.
Returns: java.lang.String
getType()
public final FileType getType()
Gets the file type.
Returns: FileType
getPages()
public final IPageInfo[] getPages()
Defines document pages collection.
Returns: com.groupdocs.merger.domain.result.IPageInfo[]
getPageCount()
public final int getPageCount()
The document pages count.
Returns: int
getSize()
public final long getSize()
Document size in bytes
Returns: long
toString()
public String toString()
Returns a string that represents the current object.
Returns: java.lang.String - A string that represents the current object.