public interface FileInfo
The FileInfo interface defines the contract for accessing and retrieving information about a file in the GroupDocs.Viewer component. It provides methods to retrieve details such as the file type, encryption and so on.
Example usage:
try (Viewer viewer = new Viewer("document.pdf")) {
FileInfo fileInfo = viewer.getFileInfo();
// Use the fileInfo object for further operations
}
Note: The default implementation of this interface is FileInfoImpl.
Viewer| Modifier and Type | Method and Description |
|---|---|
FileType |
getFileType()
Retrieves the type of the file.
|
boolean |
isEncrypted()
Checks if the file is encrypted.
|
void |
setEncrypted(boolean encrypted)
Sets the encryption status of the file.
|
void |
setFileType(FileType fileType)
Sets the type of the file.
|
FileType getFileType()
Retrieves the type of the file.
FileTypeboolean isEncrypted()
Checks if the file is encrypted.
true if the file is encrypted, false otherwise.void setEncrypted(boolean encrypted)
Sets the encryption status of the file.
encrypted - true to indicate that the file is encrypted, false otherwise.Copyright © 2024. All rights reserved.