java.lang.Object | |
↳ | com.pdftron.pdf.model.ExternalFileInfo |
Facility class for files stored in external storage.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pdftron.pdf.model.BaseFileInfo
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ExternalFileInfo(Context context)
Class constructor
| |||||||||||
ExternalFileInfo(Context context, ExternalFileInfo parent, Uri uri)
Class consturctor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static Uri |
appendPathComponent(Uri baseUri, String component)
Returns the appended path component to the specified URI.
| ||||||||||
ExternalFileInfo |
buildTree(Uri uri)
Given the specified uri, builds its corresponding ExternalFile, complete with a reverse
mapping to this file.
| ||||||||||
ExternalFileInfo |
clone()
Clone file.
| ||||||||||
ExternalFileInfo |
createDirectory(String displayName)
Creates a directory.
| ||||||||||
ExternalFileInfo |
createFile(String mimeType, String displayName)
Creates a new file as a direct child of this directory.
| ||||||||||
boolean |
delete()
Deletes the file.
| ||||||||||
boolean |
exists()
The overloaded implementation of
exists() . | ||||||||||
ExternalFileInfo |
findFile(String displayName)
Searches this folder for the given display name.
| ||||||||||
String |
getAbsolutePath()
The overloaded implementation of
getAbsolutePath() . | ||||||||||
Context |
getContext()
Gets the context
| ||||||||||
String |
getDocumentPath()
Gets document path
| ||||||||||
String | getExtension() | ||||||||||
ExternalFileInfo |
getFile(String displayName)
A special version of
listFiles() that only creates one file. | ||||||||||
int[] | getFileCount() | ||||||||||
String |
getFileName()
The overloaded implementation of
getFileName() . | ||||||||||
int |
getFileType()
The overloaded implementation of
getFileType() . | ||||||||||
String | getHeaderText() | ||||||||||
String | getIdentifier() | ||||||||||
String |
getModifiedDate()
The overloaded implementation of
getModifiedDate() . | ||||||||||
String |
getName()
Gets file name
| ||||||||||
ExternalFileInfo |
getParent()
Gets the parent file
| ||||||||||
String |
getParentRelativePath()
Gets parent directory's relative path
| ||||||||||
static String |
getParentRelativePath(Uri uri, String name)
Gets parent directory's relative path
| ||||||||||
Long |
getRawModifiedDate()
Gets raw modified date
| ||||||||||
Uri |
getRootUri()
Gets root URI
| ||||||||||
long |
getSize()
Gets file size
| ||||||||||
String |
getSizeInfo()
The overloaded implementation of
getSizeInfo() . | ||||||||||
String |
getTreePath()
Gets tree path
| ||||||||||
String |
getType()
Gets file mime type
| ||||||||||
Uri |
getUri()
Gets the URI
| ||||||||||
static String |
getUriMimeType(Context context, String encodedUri)
Returns the URI mime type of the specified URI
| ||||||||||
String |
getVolume()
Gets file volumn
| ||||||||||
void |
initFields()
Initializes the fields by using the specified URI.
| ||||||||||
boolean |
isDirectory()
Whether it is a directory
| ||||||||||
boolean | isEarlierHeading() | ||||||||||
boolean | isHeader() | ||||||||||
boolean |
isHidden()
Whether if this file is hidden
| ||||||||||
boolean |
isPackage()
The overloaded implementation of
isPackage() . | ||||||||||
boolean |
isSecured()
The overloaded implementation of
isSecured() . | ||||||||||
boolean | isThisWeekHeading() | ||||||||||
boolean | isTodayHeading() | ||||||||||
ArrayList<ExternalFileInfo> |
listFiles()
Gets contained list of files and folders.
| ||||||||||
boolean |
renameTo(String displayName)
Rename file.
| ||||||||||
void |
setHidden(boolean isHidden)
Hide/ Reveal this file
| ||||||||||
void |
setIsPackage(boolean value)
The overloaded implementation of
setIsPackage(boolean) . | ||||||||||
void |
setIsSecured(boolean value)
The overloaded implementation of
setIsSecured(boolean) . | ||||||||||
void |
setRootUri(Uri rootUri)
Sets the root URI.
| ||||||||||
void |
setUri(Uri uri)
Sets the URI.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pdftron.pdf.model.BaseFileInfo
|
Class constructor
context | The context |
---|
Class consturctor
context | The context |
---|---|
parent | parent file |
uri | uri of this file info |
Returns the appended path component to the specified URI.
baseUri | The base URI |
---|---|
component | The component |
Given the specified uri, builds its corresponding ExternalFile, complete with a reverse mapping to this file.
uri | The URI |
---|
Creates a directory.
displayName | The display name |
---|
Creates a new file as a direct child of this directory.
mimeType | The mime type |
---|---|
displayName | The display name |
Deletes the file.
Searches this folder for the given display name.
displayName | The display name |
---|
Gets the context
Gets document path
A special version of listFiles()
that only creates one file.
displayName | The display name |
---|
Gets file name
Gets parent directory's relative path
Gets parent directory's relative path
Gets raw modified date
Gets root URI
Gets file size
The overloaded implementation of getSizeInfo()
.
Gets size in string format of this file
Gets tree path
Gets file mime type
Gets the URI
Returns the URI mime type of the specified URI
context | The context |
---|---|
encodedUri | The encoded URI |
Gets file volumn
Initializes the fields by using the specified URI.
Whether it is a directory
Whether if this file is hidden
Gets contained list of files and folders.
Rename file.
displayName | The new display name |
---|
Hide/ Reveal this file
isHidden | whether to hide this file |
---|
The overloaded implementation of setIsPackage(boolean)
.
value | True if the file is a package |
---|
The overloaded implementation of setIsSecured(boolean)
.
value | True if the file is secured |
---|
Sets the root URI.
rootUri | The root URI |
---|
Sets the URI.
uri | The URI |
---|