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.out
will open such aDummyOutputStream
as a default. A user will later redirectSystem.out
to a physically available device.
-
-
Constructor Summary
Constructors Constructor Description DummyOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(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 IOException
Description copied from class:OutputStream
Writes a single byte to this stream. Only the least significant byte of the integeroneByte
is written to the stream.- Specified by:
write
in classOutputStream
- Parameters:
oneByte
- the byte to be written.- Throws:
IOException
- if an error occurs while writing to this stream.
-
-