com.ibm.jtopenlite.file
Class FileHandle
java.lang.Object
com.ibm.jtopenlite.file.FileHandle
- All Implemented Interfaces:
- Comparable<FileHandle>
public final class FileHandle
- extends Object
- implements Comparable<FileHandle>
OPEN_READ_ONLY
public static final int OPEN_READ_ONLY
- See Also:
- Constant Field Values
OPEN_WRITE_ONLY
public static final int OPEN_WRITE_ONLY
- See Also:
- Constant Field Values
OPEN_READ_WRITE
public static final int OPEN_READ_WRITE
- See Also:
- Constant Field Values
SHARE_ALL
public static final int SHARE_ALL
- See Also:
- Constant Field Values
SHARE_WRITE
public static final int SHARE_WRITE
- See Also:
- Constant Field Values
SHARE_READ
public static final int SHARE_READ
- See Also:
- Constant Field Values
SHARE_NONE
public static final int SHARE_NONE
- See Also:
- Constant Field Values
createEmptyHandle
public static FileHandle createEmptyHandle()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(FileHandle h)
- Specified by:
compareTo
in interface Comparable<FileHandle>
isSymlink
public boolean isSymlink()
isDirectory
public boolean isDirectory()
getPath
public String getPath()
getOffset
public long getOffset()
- Returns the current byte offset in the file where the next read or write operation will take place.
setOffset
public 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.
getShareOption
public int getShareOption()
getOpenType
public int getOpenType()
isOpen
public boolean isOpen()
getName
public String getName()
getDataCCSID
public int getDataCCSID()
getTimestampCreated
public long getTimestampCreated()
getTimestampModified
public long getTimestampModified()
getTimestampAccessed
public long getTimestampAccessed()
getSize
public long getSize()
getLastStatus
public int getLastStatus()
toString
public String toString()
- Overrides:
toString
in class Object