|
||||||||||
| 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.Output
public final class Output
This class represents the connection to the output of the mic1-processor. It can buffer the output until it prints it
to its PrintStream or put each single byte to its PrintStream.
| Method Summary | |
|---|---|
static void |
flush()
Empties the buffer and writes everything to the PrintStream |
static boolean |
isBuffered()
Returns whether this output is buffered or not. |
static void |
print(byte val)
Prints a single byte to the PrintStream. |
static void |
reset()
Empties the internal buffer, so that any contents printed into the buffer will be lost. |
static void |
setBuffered(boolean buf)
Determines if any output should be buffered before it's written to the PrintStream or not. |
static void |
setOut(PrintStream newOut)
Sets the PrintStream to write the data to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setBuffered(boolean buf)
PrintStream or not. If output is
buffered, this class will wait writing the bytes to the PrintStream until a line terminating character is
written to the output. If it's not buffered, each byte will be directly written to the PrintStream.
buf - true, if the output should be bufferedflush()public static boolean isBuffered()
setBuffered(boolean) for more information.
true, if the output is bufferedsetBuffered(boolean)public static void print(byte val)
PrintStream. If the output is buffered, the output will be flushed, when
print(byte) is called with a LF.
val - the byte to write to the PrintStreampublic static void flush()
PrintStream
public static void reset()
public static void setOut(PrintStream newOut)
PrintStream to write the data to.
newOut - the new PrintStream, mustn't be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||