sisc.io.custom
Class SchemeReader

java.lang.Object
  extended by java.io.Reader
      extended by sisc.io.custom.SchemeReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable, CustomPortProxy

public class SchemeReader
extends java.io.Reader
implements CustomPortProxy


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
SchemeReader(Procedure read, Procedure readString, Procedure ready, Procedure close)
           
 
Method Summary
 void close()
           
 Value getHost()
           
 Pair getProcs()
           
 int read()
           
 int read(char[] buffer, int offset, int length)
           
 boolean ready()
           
 void setHost(Value host)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemeReader

public SchemeReader(Procedure read,
                    Procedure readString,
                    Procedure ready,
                    Procedure close)
Method Detail

getHost

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

setHost

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

getProcs

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

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.Reader
Throws:
java.io.IOException

read

public int read(char[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Specified by:
read in class java.io.Reader
Throws:
java.io.IOException

ready

public boolean ready()
              throws java.io.IOException
Overrides:
ready in class java.io.Reader
Throws:
java.io.IOException

close

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