gnu.java.nio
Class VMChannel.State

java.lang.Object
  extended by 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.


Field Summary
private  boolean closed
           
private  int native_fd
           
private  boolean valid
           
 
Constructor Summary
VMChannel.State()
           
 
Method Summary
 void close()
           
protected  void finalize()
           
 int getNativeFD()
           
 boolean isClosed()
           
 boolean isValid()
           
(package private)  void setNativeFD(int native_fd)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

native_fd

private int native_fd

valid

private boolean valid

closed

private boolean closed
Constructor Detail

VMChannel.State

VMChannel.State()
Method Detail

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