org.crsh.term.console
Class TermIOWriter

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

 class TermIOWriter
extends Object

Wraps TermIO and care about CRLF.


Field Summary
private  TermIO io
          .
private  boolean previousCR
          .
 
Constructor Summary
protected TermIOWriter(TermIO 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 TermIO io
.

Constructor Detail

TermIOWriter

protected TermIOWriter(TermIO 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 © 2014 eXo Platform SAS. All Rights Reserved.