|
||||||||||
| 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(java.io.InputStream stream)
Sets the input stream for the component. |
static void |
setQuiet(boolean q)
Sets the flag, whether this component should produce output or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setIn(java.io.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.
public static void setQuiet(boolean q)
q - true if this component is not allowed to produce output,false if it is allowed to produce output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||