java.io
Class File
java.lang.Object
java.io.File
public class File
- extends Object
- Since:
- BlackBerry API [New]
separator
public static String separator
- Since:
- BlackBerry API [New]
separatorChar
public static char separatorChar
- Since:
- BlackBerry API [New]
pathSeparator
public static String pathSeparator
- Since:
- BlackBerry API [New]
pathSeparatorChar
public static char pathSeparatorChar
- Since:
- BlackBerry API [New]
File
public File(String name)
- Since:
- BlackBerry API [New]
File
public File(String directory,
String name)
- Since:
- BlackBerry API [New]
File
public File(File file,
String name)
- Since:
- BlackBerry API [New]
exists
public boolean exists()
- Since:
- BlackBerry API [New]
isFile
public boolean isFile()
- Since:
- BlackBerry API [New]
isDirectory
public boolean isDirectory()
- Since:
- BlackBerry API [New]
mkdir
public boolean mkdir()
- Since:
- BlackBerry API [New]
mkdirs
public boolean mkdirs()
- Since:
- BlackBerry API [New]
list
public String[] list()
- Since:
- BlackBerry API [New]
delete
public boolean delete()
- Since:
- BlackBerry API [New]
length
public int length()
- Since:
- BlackBerry API [New]
getParentFile
public File getParentFile()
- Since:
- BlackBerry API [New]
getParent
public String getParent()
- Since:
- BlackBerry API [New]
getName
public String getName()
- Since:
- BlackBerry API [New]
renameTo
public boolean renameTo(File newFileName)
- Since:
- BlackBerry API [New]
getPath
public String getPath()
- Since:
- BlackBerry API [New]
getAbsolutePath
public String getAbsolutePath()
- Since:
- BlackBerry API [New]
getAbsoluteFile
public File getAbsoluteFile()
- Since:
- BlackBerry API [New]
getCanonicalPath
public String getCanonicalPath()
throws IOException
- Throws:
IOException- Since:
- BlackBerry API [New]
getCanonicalFile
public File getCanonicalFile()
throws IOException
- Throws:
IOException- Since:
- BlackBerry API [New]
equals
public boolean equals(Object obj)
- Description copied from class:
Object
- Indicates whether some other object is "equal to" this one.
The equals method implements an equivalence relation:
- It is reflexive: for any reference value
x,
x.equals(x) should return true.
- It is symmetric: for any reference values
x and
y, x.equals(y) should return
true if and only if y.equals(x) returns
true.
- It is transitive: for any reference values
x,
y, and z, if x.equals(y)
returns true and y.equals(z) returns
true, then x.equals(z) should return
true.
- It is consistent: for any reference values
x
and y, multiple invocations of x.equals(y)
consistently return true or consistently return
false, provided no information used in
equals comparisons on the object is modified.
- For any non-null reference value
x,
x.equals(null) should return false.
The equals method for class Object implements
the most discriminating possible equivalence relation on objects;
that is, for any reference values x and y,
this method returns true if and only if x and
y refer to the same object (x==y has the
value true).
- Overrides:
equals in class Object
- Parameters:
obj - the reference object with which to compare.
- Returns:
true if this object is the same as the obj
argument; false otherwise.- See Also:
Boolean.hashCode(),
Hashtable- Since:
- BlackBerry API [New]
lastModified
public long lastModified()
throws IOException
- Throws:
IOException- Since:
- BlackBerry API [New]
createTempFile
public static File createTempFile(String prefix,
String suffix)
throws IOException
- Throws:
IOException- Since:
- BlackBerry API [New]
createTempFile
public static File createTempFile(String prefix,
String suffix,
File dir)
throws IOException
- Throws:
IOException- Since:
- BlackBerry API [New]
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.