org.crsh.term
Class BaseTerm

java.lang.Object
  extended by org.crsh.util.InputDecoder
      extended by org.crsh.term.BaseTerm
All Implemented Interfaces:
java.util.Iterator<Input>, Term

public class BaseTerm
extends InputDecoder
implements Term

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
BaseTerm(TermIO io)
           
BaseTerm(TermIO io, TermProcessor processor)
           
 
Method Summary
 TermAction _read()
           
 void close()
           
protected  void doEcho(java.lang.String s)
           
protected  void doEchoCRLF()
           
protected  void doEchoDel()
           
protected  boolean doMoveLeft()
           
protected  boolean doMoveRight()
           
 TermAction read()
           
 void run()
           
 void write(java.lang.String msg)
           
 
Methods inherited from class org.crsh.util.InputDecoder
appendData, appendData, appendDel, getSize, hasNext, isEchoing, moveLeft, moveRight, next, remove, set, setEchoing, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTerm

public BaseTerm(TermIO io)

BaseTerm

public BaseTerm(TermIO io,
                TermProcessor processor)
Method Detail

run

public void run()

read

public TermAction read()
                throws java.io.IOException
Specified by:
read in interface Term
Throws:
java.io.IOException

close

public void close()

_read

public TermAction _read()
                 throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.String msg)
           throws java.io.IOException
Specified by:
write in interface Term
Throws:
java.io.IOException

doEchoCRLF

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

doEchoDel

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

doEcho

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

doMoveRight

protected boolean doMoveRight()
                       throws java.io.IOException
Specified by:
doMoveRight in class InputDecoder
Throws:
java.io.IOException

doMoveLeft

protected boolean doMoveLeft()
                      throws java.io.IOException
Specified by:
doMoveLeft in class InputDecoder
Throws:
java.io.IOException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.