net.loadbang.jython.util
Class MaxWindowWriter

java.lang.Object
  extended by java.io.OutputStream
      extended by net.loadbang.jython.util.MaxWindowWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Direct Known Subclasses:
MaxWindowErrorWriter, MaxWindowPostWriter

public abstract class MaxWindowWriter
extends java.io.OutputStream

A class mapping Jython's output printing to post()/error() messages in the Max window. Since Jython 2.5 we've not been able to rely on the default printing (buffered by Jython) working properly.

Author:
Nick Rothwell, nick@cassiel.com / nick@loadbang.net

Constructor Summary
MaxWindowWriter()
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(int b)
          A rather inefficient byte writer; we check for line separation on every character! TODO: apply a heuristic to cut this down.
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxWindowWriter

public MaxWindowWriter()
Method Detail

close

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

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
A rather inefficient byte writer; we check for line separation on every character! TODO: apply a heuristic to cut this down.

Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException