org.crsh.util
Class InputDecoder

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

public abstract class InputDecoder
extends java.lang.Object
implements java.util.Iterator<Input>

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
InputDecoder()
           
 
Method Summary
 void appendData(char c)
           
 void appendDel()
           
protected abstract  void echo(char c)
           
protected abstract  void echo(java.lang.String s)
           
protected abstract  void echoDel()
           
 int getSize()
           
 boolean hasNext()
           
 Input next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputDecoder

public InputDecoder()
Method Detail

echo

protected abstract void echo(char c)
                      throws java.io.IOException
Throws:
java.io.IOException

echo

protected abstract void echo(java.lang.String s)
                      throws java.io.IOException
Throws:
java.io.IOException

echoDel

protected abstract void echoDel()
                         throws java.io.IOException
Throws:
java.io.IOException

appendData

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

appendDel

public void appendDel()
               throws java.io.IOException
Throws:
java.io.IOException

getSize

public int getSize()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Input>

next

public Input next()
Specified by:
next in interface java.util.Iterator<Input>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Input>


Copyright © 2010 eXo Platform SAS. All Rights Reserved.