|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.util.io.File
public final class File
Various file related methods for the Blackberry.
Method Summary | |
---|---|
static boolean |
Delete(java.lang.String path)
Deletes a file. |
static boolean |
EnsureCreation(java.lang.String path)
If a file does not exist then this method will make sure any folders and subfolders are created. |
static boolean |
Exists(java.lang.String path)
Determines whether the specified file exists. |
static boolean |
isFile(FileConnection file)
Checks if the URL passed to the Connector.open() is a file. |
static boolean |
Move(java.lang.String originalPath,
java.lang.String newPath)
Move a file from one location to another. |
static boolean |
Move(java.lang.String originalPath,
java.lang.String newPath,
boolean sameName)
Move a file from one location to another. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean Exists(java.lang.String path)
path
- The file to check.
public static boolean Delete(java.lang.String path)
path
- The file to delete.
public static boolean EnsureCreation(java.lang.String path)
path
- The path to the file that is to be created.
public static boolean isFile(FileConnection file)
file
- The FileConnection
to check if it is a file.
true
if the connection's target is a file, otherwise false
.public static boolean Move(java.lang.String originalPath, java.lang.String newPath)
originalPath
- The original file path.newPath
- The new file path.
true
if the file was moved, false
if otherwise.public static boolean Move(java.lang.String originalPath, java.lang.String newPath, boolean sameName)
originalPath
- The original file path.newPath
- The new file path.sameName
- If a different filename is given should it be changed to the original filename?
true
if the file was moved, false
if otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |