public final class FileHandle extends java.lang.Object implements java.lang.Comparable<FileHandle>
Modifier and Type | Field and Description |
---|---|
static int |
OPEN_READ_ONLY |
static int |
OPEN_READ_WRITE |
static int |
OPEN_WRITE_ONLY |
static int |
SHARE_ALL |
static int |
SHARE_NONE |
static int |
SHARE_READ |
static int |
SHARE_WRITE |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FileHandle h) |
static FileHandle |
createEmptyHandle() |
boolean |
equals(java.lang.Object obj) |
int |
getDataCCSID() |
int |
getLastStatus() |
java.lang.String |
getName() |
long |
getOffset()
Returns the current byte offset in the file where the next read or write operation will take place.
|
int |
getOpenType() |
java.lang.String |
getPath() |
int |
getShareOption() |
long |
getSize() |
long |
getTimestampAccessed() |
long |
getTimestampCreated() |
long |
getTimestampModified() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isOpen() |
boolean |
isSymlink() |
void |
setOffset(long offset)
Sets the byte offset in the file for the next read or write operation; the offset is automatically
incremented after normal read or write operations.
|
java.lang.String |
toString() |
public static final int OPEN_READ_ONLY
public static final int OPEN_WRITE_ONLY
public static final int OPEN_READ_WRITE
public static final int SHARE_ALL
public static final int SHARE_WRITE
public static final int SHARE_READ
public static final int SHARE_NONE
public static FileHandle createEmptyHandle()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(FileHandle h)
compareTo
in interface java.lang.Comparable<FileHandle>
public boolean isSymlink()
public boolean isDirectory()
public java.lang.String getPath()
public long getOffset()
public void setOffset(long offset)
public int getShareOption()
public int getOpenType()
public boolean isOpen()
public java.lang.String getName()
public int getDataCCSID()
public long getTimestampCreated()
public long getTimestampModified()
public long getTimestampAccessed()
public long getSize()
public int getLastStatus()
public java.lang.String toString()
toString
in class java.lang.Object