Package com.pixelmed.dicom
Class NullOutputStream
java.lang.Object
java.io.OutputStream
com.pixelmed.dicom.NullOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A class that extends OutputStream to discard output.
Used, for example, to discard output but count byte offsets.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
NullOutputStream
public NullOutputStream()
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-