com.ibm.jtopenlite.file
Class FileHandle

java.lang.Object
  extended by com.ibm.jtopenlite.file.FileHandle
All Implemented Interfaces:
Comparable<FileHandle>

public final class FileHandle
extends Object
implements Comparable<FileHandle>


Field Summary
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
           
 
Method Summary
 int compareTo(FileHandle h)
           
static FileHandle createEmptyHandle()
           
 boolean equals(Object obj)
           
 int getDataCCSID()
           
 int getLastStatus()
           
 String getName()
           
 long getOffset()
          Returns the current byte offset in the file where the next read or write operation will take place.
 int getOpenType()
           
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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