public class FileHandle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
hasClosed
Whether the file handle has been closed.
|
boolean |
isEmptyFile
Whether the file was empty
Should not be used by your file system. |
boolean |
read
Whether reading is allowed.
|
boolean |
write
Whether writing is allowed.
|
Constructor and Description |
---|
FileHandle(java.lang.String filePath)
Creates a new FileHandle object
|
FileHandle(java.lang.String filePath,
java.lang.Object objHandle)
Creates a new FileHandle object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilePath()
Returns the file path of the handle
|
java.lang.Object |
getObjHandle()
Returns the application specific handle
|
void |
setObjHandle(java.lang.Object objHandle)
Sets the application specific handle
|
public boolean isEmptyFile
public boolean read
public boolean write
public boolean hasClosed
public FileHandle(java.lang.String filePath)
filePath
- the file pathpublic FileHandle(java.lang.String filePath, java.lang.Object objHandle)
filePath
- the file pathobjHandle
- the handle used by the applicationpublic java.lang.String getFilePath()
public java.lang.Object getObjHandle()
public void setObjHandle(java.lang.Object objHandle)
objHandle
- the application specific handle