org.crsh.term.console
Class ViewReader
java.lang.Object
org.crsh.term.console.ViewReader
public abstract class ViewReader
- extends Object
- Version:
- $Revision$
- Author:
- Julien Viet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewReader
public ViewReader()
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 © 2012 eXo Platform SAS. All Rights Reserved.