public final class NoopStreamOutput extends StreamOutput
| Constructor and Description |
|---|
NoopStreamOutput() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream to further operations.
|
void |
flush()
Forces any buffered output to be written.
|
int |
getCount()
Retrieve the number of bytes that have been written
|
void |
reset() |
void |
writeByte(byte b)
Writes a single byte.
|
void |
writeBytes(byte[] b,
int offset,
int length)
Writes an array of bytes.
|
getVersion, position, seek, seekPositionSupported, setVersion, write, write, writeBoolean, writeByteArray, writeBytes, writeBytes, writeBytesRef, writeBytesReference, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeGenericValue, writeInt, writeIntArray, writeLong, writeLongArray, writeMap, writeOptionalBoolean, writeOptionalSharedString, writeOptionalStreamable, writeOptionalString, writeOptionalText, writeSharedString, writeSharedText, writeShort, writeString, writeStringArray, writeStringArrayNullable, writeText, writeTextArray, writeVInt, writeVLongwritepublic int getCount()
public void writeByte(byte b)
throws IOException
StreamOutputwriteByte in class StreamOutputIOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws IOException
StreamOutputwriteBytes in class StreamOutputb - the bytes to writeoffset - the offset in the byte arraylength - the number of bytes to writeIOExceptionpublic void flush()
throws IOException
StreamOutputflush in interface Flushableflush in class StreamOutputIOExceptionpublic void close()
throws IOException
StreamOutputclose in interface Closeableclose in interface AutoCloseableclose in class StreamOutputIOExceptionpublic void reset()
throws IOException
reset in class StreamOutputIOExceptionCopyright © 2009–2016. All rights reserved.