sisc.io.custom
Class SchemeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by sisc.io.custom.SchemeInputStream
All Implemented Interfaces:
java.io.Closeable, CustomPortProxy

public class SchemeInputStream
extends java.io.InputStream
implements CustomPortProxy


Constructor Summary
SchemeInputStream(Procedure read, Procedure readBlock, Procedure available, Procedure close)
           
 
Method Summary
 int available()
           
 void close()
           
 Value getHost()
           
 Pair getProcs()
           
 int read()
           
 int read(byte[] b, int offset, int length)
           
 void setHost(Value host)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemeInputStream

public SchemeInputStream(Procedure read,
                         Procedure readBlock,
                         Procedure available,
                         Procedure close)
Method Detail

read

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

read

public int read(byte[] b,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

close

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

getProcs

public Pair getProcs()
Specified by:
getProcs in interface CustomPortProxy

getHost

public Value getHost()
Specified by:
getHost in interface CustomPortProxy

setHost

public void setHost(Value host)
Specified by:
setHost in interface CustomPortProxy