Uses of Class
java.io.FileDescriptor
Packages that useFileDescriptor
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 ofFileDescriptor injava.io
Fields injava.io declared asFileDescriptorModifier and TypeFieldDescriptionstatic finalFileDescriptorFileDescriptor.errA handle to the standard error stream.static finalFileDescriptorFileDescriptor.inA handle to the standard input stream.static finalFileDescriptorFileDescriptor.outA handle to the standard output stream.Methods injava.io that returnFileDescriptorModifier and TypeMethodDescriptionfinalFileDescriptorFileInputStream.getFD()Returns theFileDescriptorobject that represents the connection to the actual file in the file system being used by thisFileInputStream.finalFileDescriptorFileOutputStream.getFD()Returns the file descriptor associated with this stream.finalFileDescriptorRandomAccessFile.getFD()Returns the opaque file descriptor object associated with this stream.Constructors injava.io with parameters of typeFileDescriptorModifierConstructorDescriptionFileInputStream(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.Constructs aFileWritergiven a file descriptor, using thedefault charset.Uses ofFileDescriptor injava.lang
Methods injava.lang with parameters of typeFileDescriptorModifier and TypeMethodDescriptionvoidSecurityManager.checkRead(FileDescriptor fd) Deprecated, for removal: This API element is subject to removal in a future version.ThrowsSecurityException.voidSecurityManager.checkWrite(FileDescriptor fd) Deprecated, for removal: This API element is subject to removal in a future version.ThrowsSecurityException.Uses ofFileDescriptor injava.net
Fields injava.net declared asFileDescriptorModifier and TypeFieldDescriptionprotectedFileDescriptorDatagramSocketImpl.fdThe file descriptor object.protectedFileDescriptorSocketImpl.fdThe file descriptor object for this socket.Methods injava.net that returnFileDescriptorModifier and TypeMethodDescriptionprotectedFileDescriptorDatagramSocketImpl.getFileDescriptor()Gets the datagram socket file descriptor.protectedFileDescriptorSocketImpl.getFileDescriptor()Returns the value of this socket'sfdfield.Uses ofFileDescriptor injdk.nio
Methods injdk.nio with parameters of typeFileDescriptorModifier and TypeMethodDescriptionstaticSelectableChannelChannels.readWriteSelectableChannel(FileDescriptor fd,Channels.SelectableChannelCloser closer) Creates a selectable channel to a file descriptor that supports anoperation-setofOP_READandOP_WRITE.