com.artenum.jyconsole
Class LogWriter

java.lang.Object
  extended byjava.io.Writer
      extended bycom.artenum.jyconsole.LogWriter

public class LogWriter
extends java.io.Writer

 Project ref           : JyConsole project
 Copyright and license : See relevant sections
 Status                : under development
 Creation              : 04/03/2005
 Modification          :

 Description  : Link a Writer to our text component.

 
Version numberAuthor (name, e-mail)Corrections/Modifications
0.1Sebastien Jourdain, jourdain@artenum.comCreation

Version:
0.1
Author:
Sebastien Jourdain

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
LogWriter(TextComponent console, java.lang.String styleToUse)
           
 
Method Summary
 void close()
           
 void flush()
           
 void setSimulationFlag(boolean simulation)
           
 void write(char[] chars, int offset, int length)
           
 
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

LogWriter

public LogWriter(TextComponent console,
                 java.lang.String styleToUse)
Method Detail

write

public void write(char[] chars,
                  int offset,
                  int length)
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

setSimulationFlag

public void setSimulationFlag(boolean simulation)


 (c) Copyright: Artenum SARL, 101-103 Boulevard Mac Donald, 
                75019, Paris, France 2005.
                http://www.artenum.com
 
 License:

  This program is free software; you can redistribute it 
  and/or modify it under the terms of the Q Public License; 
  either version 1 of the License.

  This program is distributed in the hope that it will be
  useful, but WITHOUT ANY WARRANTY; without even the implied
  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
  PURPOSE. See the Q Public License for more details.

  You should have received a copy of the Q Public License 
  License along with this program; 
  if not, write to:
    Artenum SARL, 101-103 Boulevard Mac Donald,
    75019, PARIS, FRANCE, e-mail: contact@artenum.com