cx.ath.matthew.unix
Class USInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by cx.ath.matthew.unix.USInputStream
All Implemented Interfaces:
Closeable

public class USInputStream
extends InputStream


Field Summary
static int MSG_DONTWAIT
           
 
Constructor Summary
USInputStream(int sock, UnixSocket us)
           
 
Method Summary
 void close()
           
 UnixSocket getSocket()
           
 boolean isClosed()
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void setBlocking(boolean enable)
           
 void setSoTimeout(int timeout)
           
 
Methods inherited from class java.io.InputStream
available, mark, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_DONTWAIT

public static final int MSG_DONTWAIT
See Also:
Constant Field Values
Constructor Detail

USInputStream

public USInputStream(int sock,
                     UnixSocket us)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

isClosed

public boolean isClosed()

getSocket

public UnixSocket getSocket()

setBlocking

public void setBlocking(boolean enable)

setSoTimeout

public void setSoTimeout(int timeout)