org.crsh.telnet.term.console
Class TermIOWriter

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

public class TermIOWriter
extends Object

Wraps TermIO and care about CRLF.


Field Summary
private  TermIO io
          .
private  boolean previousCR
          .
 
Constructor Summary
TermIOWriter(TermIO io)
           
 
Method Summary
 void write(char c)
          Write a single char to the output.
 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

public TermIOWriter(TermIO io)
Method Detail

write

public 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 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.