java.io
Class File

java.lang.Object
  extended by java.io.File

public class File
extends Object

Since:
BlackBerry API [New]

Field Summary
static String pathSeparator
           
static char pathSeparatorChar
           
static String separator
           
static char separatorChar
           
 
Constructor Summary
File(File file, String name)
           
File(String name)
           
File(String directory, String name)
           
 
Method Summary
static File createTempFile(String prefix, String suffix)
           
static File createTempFile(String prefix, String suffix, File dir)
           
 boolean delete()
           
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 boolean exists()
           
 File getAbsoluteFile()
           
 String getAbsolutePath()
           
 File getCanonicalFile()
           
 String getCanonicalPath()
           
 String getName()
           
 String getParent()
           
 File getParentFile()
           
 String getPath()
           
 boolean isDirectory()
           
 boolean isFile()
           
 long lastModified()
           
 int length()
           
 String[] list()
           
 boolean mkdir()
           
 boolean mkdirs()
           
 boolean renameTo(File newFileName)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

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]


Constructor Detail

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]


Method Detail

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:

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.