Package org.deepjava.runtime.util
Class DummyOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.deepjava.runtime.util.DummyOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,Modified
public class DummyOutputStream extends OutputStream
A writable sink for bytes. This is a simple helper class.System.outwill open such aDummyOutputStreamas a default. A user will later redirectSystem.outto a physically available device.
-
-
Constructor Summary
Constructors Constructor Description DummyOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(int oneByte)Writes a single byte to this stream.-
Methods inherited from class java.io.OutputStream
close, flush, write, write
-
-
-
-
Method Detail
-
write
public void write(int oneByte) throws IOExceptionDescription copied from class:OutputStreamWrites a single byte to this stream. Only the least significant byte of the integeroneByteis written to the stream.- Specified by:
writein classOutputStream- Parameters:
oneByte- the byte to be written.- Throws:
IOException- if an error occurs while writing to this stream.
-
-