FileInfo

Inheritance: java.lang.Object

public class FileInfo

Represents the file information.

Constructors

Constructor Description
FileInfo(FileType fileType, long size, boolean encrypted)

Methods

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.

FileInfo(FileType fileType, long size, boolean encrypted)

public FileInfo(FileType fileType, long size, boolean encrypted)

Parameters:

Parameter Type Description
fileType FileType
size long
encrypted boolean

getFileType()

public FileType getFileType()

Gets the document type.

Returns: FileType - An instance of FileType class that represents the type of the document.

getSize()

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.

isEncrypted()

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.