org.crsh.util
Class InputDecoder

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

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 appendData(java.lang.String s)
           
 int appendDel()
           
protected abstract  void doEcho(java.lang.String s)
           
protected abstract  void doEchoCRLF()
           
protected abstract  void doEchoDel()
           
 int getSize()
           
 boolean hasNext()
           
 boolean isEchoing()
           
 Input next()
           
 void remove()
           
 java.lang.String set(java.lang.String s)
           
 void setEchoing(boolean echoing)
           
 int size()
           
 
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

isEchoing

public boolean isEchoing()

setEchoing

public void setEchoing(boolean echoing)

doEchoCRLF

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

doEcho

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

doEchoDel

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

set

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

size

public int size()

appendData

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

appendData

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

appendDel

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