|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.util.io.Path
public final class Path
Various path related functions for the Blackberry.
Field Summary | |
---|---|
static char |
DirectorySeparatorChar
Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization. |
static java.lang.String |
DirectorySeparatorString
Provides a platform-specific string used to separate directory levels in a path string that reflects a hierarchical file system organization. |
static java.lang.Class |
FILE_TYPE
The file connection type. |
static java.lang.String |
NewLine
Gets the newline string defined for this environment. |
static int |
PATH_FOLDER_ICONS
Get the path to the folder icons. |
static int |
PATH_FOLDER_ICONS_BB
Get the path to the folder icons. |
static int |
PATH_FOLDER_ICONS_SIM
Get the path to the folder icons. |
static int |
PATH_FOLDER_REMOVABLE_MEMORY
The root or the removable memory on the Blackberry. |
static int |
PATH_FOLDER_SYSTEM
The root flash memory for the Blackberry. |
static char |
VolumeSeparatorChar
Provides a platform-specific volume separator character. |
Method Summary | |
---|---|
static java.lang.String |
GetDirectoryName(java.lang.String path)
Returns the directory information for the specified path string. |
static java.lang.String |
GetExtension(java.lang.String path)
Returns the extension of the specified path string. |
static java.lang.String |
GetFileName(java.lang.String path)
Returns the file name and extension of the specified path string. |
static java.lang.String |
GetFileNameWithoutExtension(java.lang.String path)
Returns the file name of the specified path string without the extension. |
static java.lang.String |
GetRandomFileName()
Returns a random folder name or file name. |
static java.lang.String |
getSystemPath(int type)
Get a standard system path. |
static boolean |
IsPathRooted(java.lang.String path)
Gets a value indicating whether the specified path string contains absolute or relative path information. |
static boolean |
IsProperType(java.lang.String path,
java.lang.Class c)
Compares the path submitted and the desired type to determine if they are the same. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PATH_FOLDER_ICONS
public static final int PATH_FOLDER_ICONS_BB
public static final int PATH_FOLDER_ICONS_SIM
public static final int PATH_FOLDER_SYSTEM
public static final int PATH_FOLDER_REMOVABLE_MEMORY
public static char DirectorySeparatorChar
public static java.lang.String DirectorySeparatorString
public static java.lang.String NewLine
public static char VolumeSeparatorChar
public static java.lang.Class FILE_TYPE
Method Detail |
---|
public static java.lang.String getSystemPath(int type)
type
- Which type of folder to get, one of the PATH_FOLDER_* fields.
public static java.lang.String GetDirectoryName(java.lang.String path)
path
- The path of a file or directory.
public static java.lang.String GetExtension(java.lang.String path)
path
- The path string from which to get the extension.
public static java.lang.String GetFileName(java.lang.String path)
path
- The path string from which to obtain the file name and extension.
public static java.lang.String GetFileNameWithoutExtension(java.lang.String path)
path
- The path of the file.
public static boolean IsPathRooted(java.lang.String path)
path
- The path to test.
public static boolean IsProperType(java.lang.String path, java.lang.Class c)
path
- The path to check.c
- The desired type.
public static java.lang.String GetRandomFileName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |