|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.io.File
public class File
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
static java.lang.String |
fileSchemePrefix
|
static java.lang.String |
pathSeparator
|
static char |
pathSeparatorChar
|
static java.lang.String |
separator
|
static char |
separatorChar
|
Constructor Summary | |
---|---|
File(java.lang.String pathname)
|
Method Summary | |
---|---|
boolean |
canRead()
|
boolean |
canWrite()
|
int |
compareTo(java.lang.Object obj)
Answers the relative sort ordering of paths for the receiver and given argument. |
boolean |
createNewFile()
|
boolean |
delete()
Attempt to delete the file |
boolean |
equals(java.lang.Object obj)
|
boolean |
exists()
Does this file exist? |
java.lang.String |
getName()
|
java.lang.String |
getParent()
Answers the pathname of the parent of this File. |
File |
getParentFile()
Answers a new File made from the pathname of the parent of this File. |
java.lang.String |
getPath()
|
boolean |
isAbsolute()
|
boolean |
isDirectory()
Is this a directory? |
boolean |
isFile()
|
boolean |
isHidden()
|
long |
lastModified()
|
long |
length()
Returns the file's size, in bytes. |
java.lang.String[] |
list()
|
static File[] |
listRoots()
|
boolean |
mkdir()
Make the directory specified by the path |
boolean |
mkdirs()
Create all the directories needed for this File. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
public static final char separatorChar
public static final java.lang.String separator
public static final char pathSeparatorChar
public static final java.lang.String pathSeparator
public static final java.lang.String fileSchemePrefix
Constructor Detail |
---|
public File(java.lang.String pathname)
Method Detail |
---|
public boolean exists()
public boolean isDirectory()
public boolean isFile()
public boolean mkdir()
public boolean createNewFile() throws java.io.IOException
java.io.IOException
public java.lang.String getPath()
public long length()
public boolean delete()
public java.lang.String getName()
public java.lang.String[] list()
public int compareTo(java.lang.Object obj)
compareTo
in interface Comparable
another
- a File to compare the receiver to
Comparable
public java.lang.String getParent()
null
is returned when there is no parent.
null
public boolean isHidden()
public long lastModified()
public boolean canRead()
public boolean canWrite()
public boolean mkdirs()
true
.
true
if the necessary directories were created, false
otherwise.public static File[] listRoots()
public File getParentFile()
null
is returned when there is no parent.
null
public boolean isAbsolute()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |