Uses of Class
java.io.FileDescriptor
| Package | Description |
|---|---|
| java.io |
Provides for system input and output through data streams,
serialization and the file system.
|
| java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
| java.net |
Provides the classes for implementing networking applications.
|
| jdk.nio |
Defines JDK-specific
channel APIs. |
-
Uses of FileDescriptor in java.io
Fields in java.io declared as FileDescriptor Modifier and Type Field Description static FileDescriptorFileDescriptor. errA handle to the standard error stream.static FileDescriptorFileDescriptor. inA handle to the standard input stream.static FileDescriptorFileDescriptor. outA handle to the standard output stream.Methods in java.io that return FileDescriptor Modifier and Type Method Description FileDescriptorFileInputStream. getFD()Returns theFileDescriptorobject that represents the connection to the actual file in the file system being used by thisFileInputStream.FileDescriptorFileOutputStream. getFD()Returns the file descriptor associated with this stream.FileDescriptorRandomAccessFile. getFD()Returns the opaque file descriptor object associated with this stream.Constructors in java.io with parameters of type FileDescriptor Constructor Description FileInputStream(FileDescriptor fdObj)Creates aFileInputStreamby 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.FileReader(FileDescriptor fd)FileWriter(FileDescriptor fd)Constructs aFileWritergiven a file descriptor, using the platform's default charset. -
Uses of FileDescriptor in java.lang
Methods in java.lang with parameters of type FileDescriptor Modifier and Type Method Description voidSecurityManager. checkRead(FileDescriptor fd)Throws aSecurityExceptionif the calling thread is not allowed to read from the specified file descriptor.voidSecurityManager. checkWrite(FileDescriptor fd)Throws aSecurityExceptionif the calling thread is not allowed to write to the specified file descriptor. -
Uses of FileDescriptor in java.net
Fields in java.net declared as FileDescriptor Modifier and Type Field Description protected FileDescriptorDatagramSocketImpl. fdThe file descriptor object.protected FileDescriptorSocketImpl. fdThe file descriptor object for this socket.Methods in java.net that return FileDescriptor Modifier and Type Method Description protected FileDescriptorDatagramSocketImpl. getFileDescriptor()Gets the datagram socket file descriptor.protected FileDescriptorSocketImpl. getFileDescriptor()Returns the value of this socket'sfdfield. -
Uses of FileDescriptor in jdk.nio
Methods in jdk.nio with parameters of type FileDescriptor Modifier and Type Method Description static SelectableChannelChannels. readWriteSelectableChannel(FileDescriptor fd, Channels.SelectableChannelCloser closer)Creates a selectable channel to a file descriptor that supports anoperation-setofOP_READandOP_WRITE.