Package java.io |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public final class java.io.FileDescriptor extends java.lang.Object { // Fields public final static FileDescriptor err; public final static FileDescriptor in; public final static FileDescriptor out; // Constructors public FileDescriptor(); // Methods public boolean valid(); }
Instances of the file descriptor class serve as an opaque handle to the underlying machine- specific structure representing an open file or an open socket.
Applications should not create their own file descriptors.
public final static FileDescriptor errA handle to the standard error stream.
public final static FileDescriptor inA handle to the standard input stream.
public final static FileDescriptor outA handle to the standard output stream.
public FileDescriptor()The default constructor.
public boolean valid()Return Value:
Returns true if the file descriptor object represents a valid, open file or socket; false otherwise.