FileInfo
Leave feedback
On this page
Inheritance: java.lang.Object
public class FileInfo
Represents the file information.
| Constructor | Description |
|---|---|
| FileInfo(FileType fileType, long size, boolean encrypted) |
| Method | Description |
|---|---|
| getFileType() | Gets the document type. |
| getSize() | Gets the size of the document in bytes. |
| isEncrypted() | Gets a value that represents whether a file is password-protected. |
public FileInfo(FileType fileType, long size, boolean encrypted)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileType | FileType | |
| size | long | |
| encrypted | boolean |
public FileType getFileType()
Gets the document type.
Returns: FileType - An instance of FileType class that represents the type of the document.
public long getSize()
Gets the size of the document in bytes.
Returns: long - An integer value that represents the size of the document in bytes.
public boolean isEncrypted()
Gets a value that represents whether a file is password-protected.
Returns: boolean - A boolean true if a file is password-protected; otherwise false.
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.