The lowest-level representation of a file, device, or
socket. If is often used for wrapping an operating system "handle". Some
I/O classes can be queried for the FileDescriptor they are operating on, and
this descriptor can subsequently be used during the instantiation of another
I/O class, so that the new object will reuse it.
The FileDescriptor class also contains static fields representing the
system's standard input, output and error streams. These can be used directly
if desired, but it is recommended to go through System.in, System.out, and
System.err streams respectively.
Applications should not create new FileDescriptors. |