org.simplericity.jettyconsole.io
Class JTextAreaOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.simplericity.jettyconsole.io.JTextAreaOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class JTextAreaOutputStream
extends OutputStream

OutputStream implementation that will write to a JTextArea.


Constructor Summary
JTextAreaOutputStream(JTextArea text)
           
 
Method Summary
 void write(byte[] bytes)
           
 void write(byte[] bytes, int i, int i1)
           
 void write(int i)
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTextAreaOutputStream

public JTextAreaOutputStream(JTextArea text)
Method Detail

write

public void write(int i)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] bytes)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] bytes,
                  int i,
                  int i1)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException


Copyright © 2012. All Rights Reserved.