Uses of Class
java.io.FileDescriptor
Package
Description
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
Provides the classes for implementing networking applications.
Defines JDK-specific
channel
APIs.-
Uses of FileDescriptor in java.io
Modifier and TypeFieldDescriptionstatic final FileDescriptor
FileDescriptor.err
A handle to the standard error stream.static final FileDescriptor
FileDescriptor.in
A handle to the standard input stream.static final FileDescriptor
FileDescriptor.out
A handle to the standard output stream.Modifier and TypeMethodDescriptionfinal FileDescriptor
FileInputStream.getFD()
Returns theFileDescriptor
object that represents the connection to the actual file in the file system being used by thisFileInputStream
.final FileDescriptor
FileOutputStream.getFD()
Returns the file descriptor associated with this stream.final FileDescriptor
RandomAccessFile.getFD()
Returns the opaque file descriptor object associated with this stream.ModifierConstructorDescriptionFileInputStream
(FileDescriptor fdObj) Creates aFileInputStream
by using the file descriptorfdObj
, 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.Constructs aFileWriter
given a file descriptor, using the default charset. -
Uses of FileDescriptor in java.lang
Modifier and TypeMethodDescriptionvoid
SecurityManager.checkRead
(FileDescriptor fd) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to read from the specified file descriptor.void
SecurityManager.checkWrite
(FileDescriptor fd) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the calling thread is not allowed to write to the specified file descriptor. -
Uses of FileDescriptor in java.net
Modifier and TypeFieldDescriptionprotected FileDescriptor
DatagramSocketImpl.fd
The file descriptor object.protected FileDescriptor
SocketImpl.fd
The file descriptor object for this socket.Modifier and TypeMethodDescriptionprotected FileDescriptor
DatagramSocketImpl.getFileDescriptor()
Gets the datagram socket file descriptor.protected FileDescriptor
SocketImpl.getFileDescriptor()
Returns the value of this socket'sfd
field. -
Uses of FileDescriptor in jdk.nio
Modifier and TypeMethodDescriptionstatic SelectableChannel
Channels.readWriteSelectableChannel
(FileDescriptor fd, Channels.SelectableChannelCloser closer) Creates a selectable channel to a file descriptor that supports anoperation-set
ofOP_READ
andOP_WRITE
.