All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.IFSFileDescriptor

java.lang.Object
   |
   +----com.ibm.as400.access.IFSFileDescriptor

public final class IFSFileDescriptor
extends Object
implements 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:
getFD, getFD, getFD

Constructor Index

 o IFSFileDescriptor()
Constructs an IFSFileDescriptor object.

Method Index

 o sync()
Force the system buffers to synchronize with the underlying device.
 o valid()
Determines if this file descriptor represents an open file.

Constructors

 o IFSFileDescriptor
 public IFSFileDescriptor()
Constructs an IFSFileDescriptor object.

Methods

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

 o 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.

All Packages  Class Hierarchy  This Package  Previous  Next  Index