com.ibm.as400.access
Class IFSFileDescriptor

java.lang.Object
  |
  +--com.ibm.as400.access.IFSFileDescriptor
All Implemented Interfaces:
java.io.Serializable

public final class IFSFileDescriptor
extends java.lang.Object
implements java.io.Serializable

The IFSFileDescriptor class represents an integrated file system file descriptor. Instances of the file descriptor class serve as an opaque handle to the underlying structure representing an open file or an open socket. Applications should not create their own file descriptors.
Here is an example of two input streams sharing a file descriptor:

AS400 as400 = new AS400("as400");
IFSFileInputStream is1 = new IFSFileInputStream(as400, "/Dir/File");
IFSFileInputStream is2 = new IFSFileInputStream(is1.getFD());
Reading in one object advances the current file position of all objects that share the same descriptor.

See Also:
IFSFileInputStream.getFD(), IFSFileOutputStream.getFD(), IFSRandomAccessFile.getFD(), Serialized Form

Constructor Summary
IFSFileDescriptor()
          Constructs an IFSFileDescriptor object.
 
Method Summary
 void sync()
          Force the system buffers to synchronize with the underlying device.
 boolean valid()
          Determines if this file descriptor represents an open file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IFSFileDescriptor

public IFSFileDescriptor()
Constructs an IFSFileDescriptor object.
Method Detail

sync

public void sync()
          throws java.io.IOException
Force the system buffers to synchronize with the underlying device.

valid

public boolean valid()
Determines if this file descriptor represents an open file.
Returns:
true if this file descriptor represents a valid, open file; false otherwise.