head 1.1; branch 1.1.1; access ; symbols DEVEL:1.1.1.1 HEAD:1.1.1; locks ; strict; comment @# @; 1.1 date 2001.03.16.18.13.13; author jallali; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.03.16.18.13.13; author jallali; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @

Overview | Package | Class | Tree | Deprecated | Index | Help
| EJCL Xtreme for PalmOS
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## java.io
Class FileDescriptor

    java.lang.Object
      |
      +--java.io.FileDescriptor

public final class FileDescriptor
extends Object

FileDescriptor is the lowest level representation of a File, Device, or Socket. You can create any of the IO classes which take a FileDescriptor as an argument by querying an open Socket or File for the FileDescriptor.

The FileDescriptor class also contains static fields representing Standard Input, Output and Error. You can use these directly if desired but it is recommended you go through System.in, System.out, and System.err streams respectively.

Applications should not create new FileDescriptors.

See Also:
  `FileInputStream.getFD()`, `FileOutputStream.getFD()`, `RandomAccessFile#getFD()`

Field Summary
`int` | `descriptor` Represents a link to any underlying OS resources for this FileDescriptor.
`static FileDescriptor` | `err` FileDescriptor representing Standard Error
`static FileDescriptor` | `in` FileDescriptor representing Standard In
`static FileDescriptor` | `out` FileDescriptor representing Standard Out

Constructor Summary
`FileDescriptor()` Constructs a new FileDescriptor containing an invalid handle.

Method Summary
`boolean` | `valid()` Answers a boolean indicating whether or not this FileDescriptor is valid.

Methods inherited from class java.lang.Object
`clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### in

    public static final FileDescriptor in

  FileDescriptor representing Standard In

### out

    public static final FileDescriptor out

  FileDescriptor representing Standard Out

### err

    public static final FileDescriptor err

  FileDescriptor representing Standard Error

### descriptor

    public int descriptor

  Represents a link to any underlying OS resources for this FileDescriptor. A value of -1 indicates that this FileDescriptor is invalid.

Constructor Detail

### FileDescriptor

    public FileDescriptor()

  Constructs a new FileDescriptor containing an invalid handle. This constructor does nothing interesting. Provided for signature compatibility.

Method Detail

### valid

    public boolean valid()

  Answers a boolean indicating whether or not this FileDescriptor is valid.
  Returns:
    `true` if this FileDescriptor is valid, `false` otherwise

Overview | Package | Class | Tree | Deprecated | Index | Help
| EJCL Xtreme for PalmOS
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

@ 1.1.1.1 log @import initial @ text @@