|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.telnet.term.processor.Processor
public final class Processor
Field Summary | |
---|---|
(package private) Runnable |
CLOSE_TASK . |
private static String |
CONTINUE_PROMPT . |
(package private) ProcessContext |
current . |
private LineParser |
lineBuffer . |
private MultiLineVisitor |
lineVisitor . |
private CloseableList |
listeners . |
(package private) Object |
lock . |
(package private) Logger |
log . |
(package private) static Runnable |
NOOP . |
(package private) LinkedList<TermEvent> |
queue . |
private Runnable |
READ_TERM_TASK . |
(package private) Shell |
shell . |
(package private) Status |
status . |
(package private) Term |
term . |
private Object |
termLock . |
private boolean |
termReading . |
(package private) boolean |
waitingEvent A flag useful for unit testing to know when the thread is reading. |
(package private) Runnable |
WRITE_PROMPT_TASK . |
Constructor Summary | |
---|---|
Processor(Term term, Shell shell) |
Method Summary | |
---|---|
void |
addListener(Closeable listener) |
Appendable |
append(char c) |
Appendable |
append(CharSequence s) |
Appendable |
append(CharSequence csq, int start, int end) |
Screenable |
append(Style style) |
(package private) void |
close() |
Screenable |
cls() |
private void |
complete(CharSequence prefix) |
void |
flush() Flush the stream. |
int |
getHeight() Returns the screen height in chars. |
int |
getWidth() Returns the screen width in chars. |
boolean |
isWaitingEvent() |
(package private) boolean |
iterate() |
(package private) ProcessContext |
peekProcess() |
(package private) void |
readTerm() |
void |
run() |
(package private) void |
writePromptFlush() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String CONTINUE_PROMPT
static final Runnable NOOP
final Runnable WRITE_PROMPT_TASK
final Runnable CLOSE_TASK
private final Runnable READ_TERM_TASK
final Logger log
final Term term
final Shell shell
final LinkedList<TermEvent> queue
final Object lock
ProcessContext current
Status status
volatile boolean waitingEvent
private final CloseableList listeners
private final LineParser lineBuffer
private final MultiLineVisitor lineVisitor
private final Object termLock
private boolean termReading
Constructor Detail |
---|
public Processor(Term term, Shell shell)
Method Detail |
---|
public boolean isWaitingEvent()
public void run()
run
in interface Runnable
boolean iterate() throws InterruptedException, IOException
InterruptedException
IOException
ProcessContext peekProcess()
void readTerm()
void close()
public void addListener(Closeable listener)
public int getWidth()
ScreenContext
getWidth
in interface ScreenContext
public int getHeight()
ScreenContext
getHeight
in interface ScreenContext
public Appendable append(char c) throws IOException
append
in interface Appendable
IOException
public Appendable append(CharSequence s) throws IOException
append
in interface Appendable
IOException
public Appendable append(CharSequence csq, int start, int end) throws IOException
append
in interface Appendable
IOException
public Screenable append(Style style) throws IOException
append
in interface Screenable
IOException
public Screenable cls() throws IOException
cls
in interface Screenable
IOException
public void flush() throws IOException
ScreenContext
flush
in interface ScreenContext
IOException
- any io exceptionvoid writePromptFlush()
private void complete(CharSequence prefix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |