org.crsh.util
Class ReaderStateMachine

java.lang.Object
  extended by org.crsh.util.InputDecoder
      extended by org.crsh.util.ReaderStateMachine
All Implemented Interfaces:
java.util.Iterator<Input>
Direct Known Subclasses:
SSHReader

public class ReaderStateMachine
extends InputDecoder

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ReaderStateMachine(int verase)
           
ReaderStateMachine(int verase, java.io.Writer echo)
           
 
Method Summary
 void append(char c)
           
 void append(java.lang.String s)
           
protected  void echo(char c)
           
protected  void echo(java.lang.String s)
           
protected  void echoDel()
           
 
Methods inherited from class org.crsh.util.InputDecoder
appendData, appendDel, getSize, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderStateMachine

public ReaderStateMachine(int verase)

ReaderStateMachine

public ReaderStateMachine(int verase,
                          java.io.Writer echo)
Method Detail

echo

protected void echo(char c)
             throws java.io.IOException
Specified by:
echo in class InputDecoder
Throws:
java.io.IOException

echo

protected void echo(java.lang.String s)
             throws java.io.IOException
Specified by:
echo in class InputDecoder
Throws:
java.io.IOException

echoDel

protected void echoDel()
                throws java.io.IOException
Specified by:
echoDel in class InputDecoder
Throws:
java.io.IOException

append

public void append(java.lang.String s)
            throws java.io.IOException
Throws:
java.io.IOException

append

public void append(char c)
            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.