Packages  This Package  Prev  Next  Index  

§2.8 Class FileDescriptor

public  final  class  java.io.FileDescriptor
    extends  java.lang.Object  (I-§1.12)
{
        // Fields
    public final static FileDescriptor err;	§2.8.1
    public final static FileDescriptor in;	§2.8.2
    public final static FileDescriptor out;	§2.8.3

       // Constructors
    public FileDescriptor();	§2.8.4

        // Methods
    public boolean valid();	§2.8.5
}
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.


Fields

err

public final static FileDescriptor err
A handle to the standard error stream.

in

public final static FileDescriptor in
A handle to the standard input stream.

out

public final static FileDescriptor out
A handle to the standard output stream.

Constructors

FileDescriptor

public FileDescriptor()
The default constructor.

Methods

valid

public boolean valid()
Returns:
true if the file descriptor object represents a valid, open file or socket; false otherwise.

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com