|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.squawk.platform.BaseGCFFile
public abstract class BaseGCFFile
Base class of common implementation of GCFFile
Field Summary | |
---|---|
static int |
INVALID_HANDLE
|
protected String |
nativeFileName
File name. |
protected int |
readHandle
Read handle. |
protected int |
writeHandle
Write handle. |
Constructor Summary | |
---|---|
BaseGCFFile()
|
Method Summary | |
---|---|
void |
close()
Close file associated with this handler. |
void |
closeForReadWrite()
Closes the file for both reading and writing. |
void |
connect(String rootName,
String fileName)
Connect file handler to the abstract file target. |
static char |
getFileSeparator()
Gets the system-dependent file separator character. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.squawk.platform.GCFFile |
---|
closeForRead, closeForWrite, create, delete, exists, fileSize, flush, illegalFileNameChars, isDirectory, openForRead, openForWrite, positionForWrite, read, write |
Field Detail |
---|
public static final int INVALID_HANDLE
protected int readHandle
protected int writeHandle
protected String nativeFileName
Constructor Detail |
---|
public BaseGCFFile()
Method Detail |
---|
public void connect(String rootName, String fileName)
connect
in interface GCFFile
rootName
- The name of the root directory.fileName
- Full path to the file to be handled by this handler.
IllegalArgumentException
- if filename contains characters
not allowed by the file system. This check should not involve
any actual access to the filesystem.public static char getFileSeparator()
public void close() throws IOException
close
in interface GCFFile
IOException
- if I/O error occurspublic void closeForReadWrite() throws IOException
closeForReadWrite
in interface GCFFile
IOException
- if any error occurs during input/output operations.
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |