org.crsh.console
Class EditorWriter

java.lang.Object
  extended by org.crsh.console.EditorWriter

 class EditorWriter
extends Object

Wraps TermIO and care about CRLF.


Field Summary
private  ConsoleDriver io
          .
private  boolean previousCR
          .
 
Constructor Summary
protected EditorWriter(ConsoleDriver io)
           
 
Method Summary
(package private)  void write(char c)
          Write a single char to the output.
(package private)  void write(CharSequence s)
          Write a char sequence to the output.
private  void writeNoFlush(char c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

previousCR

private boolean previousCR
.


io

private final ConsoleDriver io
.

Constructor Detail

EditorWriter

protected EditorWriter(ConsoleDriver io)
Method Detail

write

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

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

write

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

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

writeNoFlush

private void writeNoFlush(char c)
                   throws IOException
Throws:
IOException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.