Name
FileDescriptor
Synopsis
This class is a platform-independent
representation of a low-level
handle to an open file or socket. The
static in
, out, and
err variables are
FileDescriptor objects that represent the standard
input, output, and error streams, respectively. There is no public
constructor method to create a FileDescriptor
object. You can obtain one with the getFD(
)
method
of FileInputStream,
FileOutputStream, or
RandomAccessFile.
public final class FileDescriptor { // Public Constructors public FileDescriptor( ); // Public Constants public static final FileDescriptor err; public static final FileDescriptor in; public static final FileDescriptor out; // Public Instance Methods 1.1 public void sync( ) throws SyncFailedException; native public boolean valid( ); }
Passed To
FileInputStream.FileInputStream( ),
FileOutputStream.FileOutputStream( ),
FileReader.FileReader( ),
FileWriter.FileWriter( ),
SecurityManager.{checkRead( ),
checkWrite( )}
Returned By
FileInputStream.getFD( ),
FileOutputStream.getFD( ),
RandomAccessFile.getFD( ),
java.net.DatagramSocketImpl.getFileDescriptor( ),
java.net.SocketImpl.getFileDescriptor( )
Type Of
java.net.DatagramSocketImpl.fd,
java.net.SocketImpl.fd
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access