org.crsh.term.console
Class ViewReader

java.lang.Object
  extended by org.crsh.term.console.ViewReader

public abstract class ViewReader
extends Object

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ViewReader()
           
 
Method Summary
abstract  int del()
          Delete the char under the cursor or return -1 if no char was deleted.
abstract  boolean moveLeft()
           
abstract  boolean moveRight()
           
abstract  CharSequence replace(CharSequence s)
          Replace all the characters before the cursor by the provided char sequence.
abstract  void write(char c)
           
abstract  void write(CharSequence s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewReader

public ViewReader()
Method Detail

replace

public abstract CharSequence replace(CharSequence s)
                              throws IOException
Replace all the characters before the cursor by the provided char sequence.

Parameters:
s - the new char sequence
Returns:
the l
Throws:
IOException - any IOException

write

public abstract void write(char c)
                    throws IOException
Throws:
IOException

write

public abstract void write(CharSequence s)
                    throws IOException
Throws:
IOException

del

public abstract int del()
                 throws IOException
Delete the char under the cursor or return -1 if no char was deleted.

Returns:
the deleted char
Throws:
IOException - any IOException

moveRight

public abstract boolean moveRight()
                           throws IOException
Throws:
IOException

moveLeft

public abstract boolean moveLeft()
                          throws IOException
Throws:
IOException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.