|
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.util.file.FileHandleImpl
public class FileHandleImpl
Wraps a FileConnection object which can be used to gain access to a file
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
static java.lang.String |
fileSchemePrefix
|
static java.lang.String |
separator
|
static char |
separatorChar
|
Method Summary | |
---|---|
long |
availableSize()
|
void |
close()
Close the underlying file handle |
static FileHandleImpl |
create(java.lang.String path)
Factory method to create a FileHandle to the specified dir or filename |
void |
createFile()
|
void |
delete()
Attempt to delete the file |
boolean |
exists()
Does this file exist? |
long |
fileSize()
Returns the file's size, in bytes. |
static FileSystemInfo[] |
getFileSystemRoots()
Get an array of all the file system roots, e.g. |
java.lang.String |
getName()
|
java.lang.String |
getPath()
|
boolean |
isDirectory()
Is this a directory? |
java.lang.String[] |
list()
|
boolean |
mkdir()
Make the directory specified by the path |
java.io.InputStream |
openFileForReading()
|
java.io.OutputStream |
openFileForWriting()
|
java.io.OutputStream |
openFileForWriting(boolean append)
|
long |
totalSize()
|
Methods inherited from class java.lang.Object |
---|
equals, 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 java.lang.String fileSchemePrefix
Method Detail |
---|
public static FileHandleImpl create(java.lang.String path)
path
-
public boolean exists()
public boolean isDirectory()
public void close()
public boolean mkdir()
public void createFile()
public java.io.OutputStream openFileForWriting()
public java.io.OutputStream openFileForWriting(boolean append)
public java.io.InputStream openFileForReading()
public static FileSystemInfo[] getFileSystemRoots()
public java.lang.String getPath()
public long fileSize()
public void delete()
public java.lang.String getName()
public java.lang.String[] list()
public long availableSize()
public long totalSize()
|
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 |