Closeable, Flushable, AutoCloseablepublic class NullOutputStream extends OutputStream
OutputStream implementation that works as a sink.
| Constructor | Description |
|---|---|
NullOutputStream() |
Creates a
NullOutputStream. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
write(byte[] pBytes) |
This implementation does nothing.
|
void |
write(byte[] pBytes,
int pOffset,
int pLength) |
This implementation does nothing.
|
void |
write(int pByte) |
This implementation does nothing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, flushpublic void write(int pByte)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] pBytes)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] pBytes,
int pOffset,
int pLength)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2018. All rights reserved.