|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TermIO
The input/output of a term.
| Method Summary | |
|---|---|
void |
close()
Close the input/output. |
CodeType |
decode(int code)
Decode the intput value. |
void |
flush()
Flush output. |
int |
getWidth()
Returns the term width in chars. |
boolean |
moveLeft()
Move the cursor left. |
boolean |
moveRight(char c)
Move the cursor right. |
int |
read()
Reads an input value. |
void |
write(char c)
Write a char. |
void |
write(String s)
Write a string. |
void |
writeCRLF()
Write a CRLF. |
void |
writeDel()
Delete the char. |
| Method Detail |
|---|
int read()
throws IOException
IOException - any io exceptionint getWidth()
CodeType decode(int code)
code - the code
void close()
void flush()
throws IOException
IOException - any io exception
void write(String s)
throws IOException
s - the string to write
IOException - any io exception
void write(char c)
throws IOException
c - the char to write
IOException - any io exception
void writeDel()
throws IOException
IOException - any io exception
void writeCRLF()
throws IOException
IOException - any io exception
boolean moveRight(char c)
throws IOException
c - the char skipped over
IOException - any io exception
boolean moveLeft()
throws IOException
IOException - any io exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||