## Uses of Class
java.io.FileDescriptor

- Packages that use FileDescriptor
  Package | Description
  --- | ---
  java.io |

- - ### Uses of FileDescriptor in java.io

    Fields in java.io declared as FileDescriptor
    Modifier and Type | Field and Description
    --- | ---
    `static FileDescriptor` | FileDescriptor.`err` A handle to the standard error stream.
    `static FileDescriptor` | FileDescriptor.`in` A handle to the standard input stream.
    `static FileDescriptor` | FileDescriptor.`out` A handle to the standard output stream.

    Methods in java.io that return FileDescriptor
    Modifier and Type | Method and Description
    --- | ---
    `FileDescriptor` | FileOutputStream.`getFD()` Returns the file descriptor associated with this stream.
    `FileDescriptor` | FileInputStream.`getFD()` Returns the `FileDescriptor` object that represents the connection to the actual file in the file system being used by this `FileInputStream`.

    Constructors in java.io with parameters of type FileDescriptor
    Constructor and Description
    `FileInputStream(FileDescriptor fdObj)` Creates a `FileInputStream` by using the file descriptor `fdObj`, which represents an existing connection to an actual file in the file system.
    `FileOutputStream(FileDescriptor fdObj)` Creates a file output stream to write to the specified file descriptor, which represents an existing connection to an actual file in the file system.
    `FileReader(FileDescriptor fd)` Creates a new `FileReader`, given the `FileDescriptor` to read from.
    `FileWriter(FileDescriptor fd)` Constructs a FileWriter object associated with a file descriptor.

Copyright © 2025 API Design. All Rights Reserved.