com.ibm.jtopenlite.file
Class FileHandle

java.lang.Object
  extended by com.ibm.jtopenlite.file.FileHandle

public class FileHandle
extends Object


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
static FileHandle createEmptyHandle()
           
 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()
           
 int getShareOption()
           
 long getSize()
           
 long getTimestampAccessed()
           
 long getTimestampCreated()
           
 long getTimestampModified()
           
 boolean isOpen()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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()

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()