gnu.java.nio
Class VMChannel.State
java.lang.Object
gnu.java.nio.VMChannel.State
- Enclosing class:
- VMChannel
public final class VMChannel.State
- extends Object
A wrapper for a native file descriptor integer. This tracks the state
of an open file descriptor, and ensures that
This class need not be fully supported by virtual machines; if a
virtual machine does not use integer file descriptors, or does and
wishes to hide that, then the methods of this class may be stubbed out.
System-specific classes that depend on access to native file descriptor
integers SHOULD declare this fact.
native_fd
private int native_fd
valid
private boolean valid
closed
private boolean closed
VMChannel.State
VMChannel.State()
isValid
public boolean isValid()
isClosed
public boolean isClosed()
getNativeFD
public int getNativeFD()
throws IOException
- Throws:
IOException
setNativeFD
void setNativeFD(int native_fd)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable