org.crsh.term.console
Class ConsoleWriter

java.lang.Object
  extended by org.crsh.term.console.ConsoleWriter

public abstract class ConsoleWriter
extends Object

The console writer controls the output as seen by the client of the console. It never changes the console internal state.

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ConsoleWriter()
           
 
Method Summary
abstract  void write(char c)
          Write a single char to the output.
abstract  void write(CharSequence s)
          Write a char sequence to the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleWriter

public ConsoleWriter()
Method Detail

write

public abstract void write(CharSequence s)
                    throws IOException
Write a char sequence to the output.

Parameters:
s - the char sequence
Throws:
IOException - any io exception

write

public abstract void write(char c)
                    throws IOException
Write a single char to the output.

Parameters:
c - the char to write
Throws:
IOException - any io exception


Copyright © 2012 eXo Platform SAS. All Rights Reserved.