java.io
Class FileDescriptor
java.lang.Object
|
+--java.io.FileDescriptor
public final class
FileDescriptorextends
Object This class represents an opaque file handle as a Java class. It should
be used only to pass to other methods that expect an object of this
type. No system specific information can be obtained from this object.
Author:- Aaron M. Renn (arenn@urbanophile.com)
err
public static final FileDescriptor err
This is a FileDescriptor
object representing the standard
error stream.
in
public static final FileDescriptor in
This is a FileDescriptor
object representing the standard
input stream.
out
public static final FileDescriptor out
This is a FileDescriptor
object representing the standard
output stream.
FileDescriptor
public FileDescriptor()
This method is used to initialize an invalid FileDescriptor object.
sync
public void sync()
This method forces all data that has not yet been physically written to
the underlying storage medium associated with this FileDescriptor
to be written out. This method will not return until all data has
been fully written to the underlying device. If the device does not
support this functionality or if an error occurs, then an exception
will be thrown.
valid
public boolean valid()
This methods tests whether or not this object represents a valid open
native file handle.
Returns:
true
if this object represents a valid native file handle, false
otherwise