sisc.io.custom
Class SchemeWriter

java.lang.Object
  extended by java.io.Writer
      extended by sisc.io.custom.SchemeWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable, CustomPortProxy

public class SchemeWriter
extends java.io.Writer
implements CustomPortProxy


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
SchemeWriter(Procedure write, Procedure writeBlock, Procedure flush, Procedure close)
           
 
Method Summary
 void close()
           
 void flush()
           
 Value getHost()
           
 Pair getProcs()
           
 void setHost(Value host)
           
 void write(char[] b, int offset, int length)
           
 void write(int c)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemeWriter

public SchemeWriter(Procedure write,
                    Procedure writeBlock,
                    Procedure flush,
                    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

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] b,
                  int offset,
                  int length)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer
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.Writer
Throws:
java.io.IOException