fr.yanntool.util
Class ConsoleWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--fr.yanntool.util.ConsoleWriter

public class ConsoleWriter
extends java.io.Writer


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
ConsoleWriter(javax.swing.text.Document doc)
           
 
Method Summary
 java.io.OutputStream asStream()
           
 void close()
           
 void flush()
           
 int offsetAtteint()
           
 void write(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Writer
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleWriter

public ConsoleWriter(javax.swing.text.Document doc)
Method Detail

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in class java.io.Writer
java.io.IOException

close

public void close()
Specified by:
close in class java.io.Writer

offsetAtteint

public int offsetAtteint()

asStream

public java.io.OutputStream asStream()


Redirection des sorties standards