|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.access.IFSFileDescriptor
public final class IFSFileDescriptor
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("mySystem"); 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.
IFSFileInputStream.getFD()
,
IFSFileOutputStream.getFD()
,
IFSRandomAccessFile.getFD()
,
Serialized FormConstructor 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 |
---|
public IFSFileDescriptor()
Method Detail |
---|
public void sync() throws IOException
IOException
public boolean valid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |