| java.lang.Object | |
| ↳ | java.io.FileDescriptor |
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.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| FileDescriptor | err | FileDescriptor representing Standard Error | |||||||||
| FileDescriptor | in | FileDescriptor representing Standard In | |||||||||
| FileDescriptor | out | FileDescriptor representing Standard Out | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new FileDescriptor containing an invalid handle.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Ensures that data which is buffered within the underlying implementation
is written out to the appropriate device before returning.
| |||||||||||
Returns a boolean indicating whether or not this FileDescriptor is valid.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
FileDescriptor representing Standard Error
FileDescriptor representing Standard In
FileDescriptor representing Standard Out
Constructs a new FileDescriptor containing an invalid handle. This constructor does nothing interesting. Provided for signature compatibility.
Ensures that data which is buffered within the underlying implementation is written out to the appropriate device before returning.
| SyncFailedException | when the operation fails |
|---|
Returns a boolean indicating whether or not this FileDescriptor is valid.
true if this FileDescriptor is valid,
false otherwise