public class NullOutputStream extends OutputStream
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
|Modifier and Type||Method and Description|
Returns the only instance of this class.
close, flush, write, write
public void write(int discarded)
public static NullOutputStream getInstance()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.