|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
it.unimi.dsi.mg4j.io.NullOutputStream
dsiutils
.
@Deprecated public class NullOutputStream
Throw-it-away output stream.
This stream discards whatever is written into it. Its usefulness is in
previewing the length of some coding by wrapping it in an OutputBitStream
(it is a good idea, in this case, to specify a 0-length buffer).
This class is a singleton. You cannot create a null output stream,
but you can obtain an instance of this class using getInstance()
.
Method Summary | |
---|---|
static NullOutputStream |
getInstance()
Deprecated. Returns the only instance of this class. |
void |
write(int discarded)
Deprecated. |
Methods inherited from class java.io.OutputStream |
---|
close, flush, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void write(int discarded)
write
in class OutputStream
public static NullOutputStream getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |