FileDescriptorNameFileDescriptorSynopsis
DescriptionThe FileDescriptor class encapsulates system-specific handles for files and sockets. Instances of this class can be properly constructed only by native methods of other classes. In other words, you should not be constructing your own file descriptors. Currently, file descriptors are returned by the following methods:
A file descriptor can be used in the constructors for FileInputStream, FileOutputStream, FileReader, and FileWriter. Class Summary
public final class java.io.FileDescriptor extends java.lang.Object { // Constants public final static FileDescriptor err; public final static FileDescriptor in; public final static FileDescriptor out; // Instance Methods public native void sync(); // New in 1.1 public native boolean valid(); } Constantserrpublic final static FileDescriptor err
inpublic final static FileDescriptor in
outpublic final static FileDescriptor out
Instance Methodssyncpublic native void sync() throws SyncFailedException
validpublic native boolean valid()
Inherited Methods
See AlsoFileInputStream, FileOutputStream, FileReader, FileWriter, SyncFailedException, System |
|