|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.mic1.io.Input
public final class Input
This class represents the connection to the input of the mic1-processor. It is called buffered, because it reads one line and provides single bytes from the read input to the reader.
| Method Summary | |
|---|---|
static byte |
read()
Reads a single byte from the given input stream. |
static void |
reset()
Resets the internal buffer, so that the next call of read() will cause an invocation of the underlying
InputStream. |
static void |
setIn(InputStream stream)
Sets the input stream for the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setIn(InputStream stream)
stream - the new input stream, mustn't be nullpublic static byte read()
-1 if the stream doesn't return anything to read.public static void reset()
read() will cause an invocation of the underlying
InputStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||