com.izforge.izpack.util
Class ConsoleWriter

java.lang.Object
  extended by java.io.OutputStream
      extended by com.izforge.izpack.util.ConsoleWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

 class ConsoleWriter
extends java.io.OutputStream


Field Summary
private  java.lang.StringBuffer buffer
           
private  ConsoleTextArea textArea
           
 
Constructor Summary
ConsoleWriter(ConsoleTextArea textArea)
           
 
Method Summary
 void close()
           
 void flush()
           
private  void flushBuffer()
           
 void write(char[] data, int off, int len)
           
 void write(int ch)
           
 
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
 

Field Detail

textArea

private ConsoleTextArea textArea

buffer

private java.lang.StringBuffer buffer
Constructor Detail

ConsoleWriter

public ConsoleWriter(ConsoleTextArea textArea)
Method Detail

write

public void write(int ch)
Specified by:
write in class java.io.OutputStream

write

public void write(char[] data,
                  int off,
                  int len)

flush

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

close

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

flushBuffer

private void flushBuffer()