| java.lang.Object | |
| ↳ | com.pdftron.pdf.utils.FileInfoManager |
Known Direct Subclasses
|
Singleton class to manage files defined as FileInfo
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addFile(Context context, FileInfo fileInfo)
Adds the specified file into the repository.
| ||||||||||
| void |
clearFiles(Context context)
Removes all files from the repository.
| ||||||||||
| boolean |
containsFile(Context context, FileInfo fileInfo)
Checks whether the specified file exists in the repository.
| ||||||||||
| FileInfo |
getFile(Context context, FileInfo fileInfo)
Returns the file in the repository that equals to the specified file.
| ||||||||||
| FileInfo |
getFile(Context context, int index)
Returns the n'th file added into the repository.
| ||||||||||
| List<FileInfo> |
getFiles(Context context)
Returns all files in the repository
| ||||||||||
| boolean |
isEmpty(Context context)
Checks whether there is any file in the repository.
| ||||||||||
| boolean |
removeFile(Context context, FileInfo fileToRemove)
Removes the specified file from the repository.
| ||||||||||
| List<FileInfo> |
removeFiles(Context context, List<FileInfo> filesToRemove)
Removes the specified files from the repository.
| ||||||||||
| void |
saveFiles(Context context, List<FileInfo> files)
Saves the specified files into the repository.
| ||||||||||
| int |
size(Context context)
Returns the number of files in the repository.
| ||||||||||
| boolean |
updateFile(Context context, FileInfo oldFile, FileInfo newFile)
Updates the file in the repository.
| ||||||||||
| void |
updateFile(Context context, FileInfo fileInfo)
Updates the information of the specified file in the repository.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Adds the specified file into the repository.
| context | The context |
|---|---|
| fileInfo | The file info |
Removes all files from the repository.
| context | The context |
|---|
Checks whether the specified file exists in the repository.
| context | The context |
|---|---|
| fileInfo | The FileInfo |
Returns the file in the repository that equals to the specified file.
See equals(Object).
| context | The context |
|---|---|
| fileInfo | The file info |
FileInfo
Returns the n'th file added into the repository.
| context | The context |
|---|---|
| index | The index of the file |
FileInfo int the repository
Returns all files in the repository
| context | The context |
|---|
Checks whether there is any file in the repository.
| context | The context |
|---|
Removes the specified file from the repository.
| context | The context |
|---|---|
| fileToRemove | The file to be removed |
Removes the specified files from the repository.
| context | The context |
|---|---|
| filesToRemove | The list of files to be removed |
Saves the specified files into the repository.
| context | The context |
|---|---|
| files | A list of files to be added into the repository |
Returns the number of files in the repository.
| context | The context |
|---|
Updates the file in the repository.
| context | The context |
|---|---|
| oldFile | The old file info |
| newFile | The new file info |
Updates the information of the specified file in the repository.
| context | The context |
|---|---|
| fileInfo | The file info |