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
StreamOutput
writeByte in class
StreamOutput
IOException
public void writeBytes(byte[] b,
int offset,
int length)
throws IOException
StreamOutput
writeBytes in class
StreamOutput
b - the bytes to write
offset - the offset in the byte array
length - the number of bytes to write
IOException
public void flush()
throws IOException
StreamOutput
flush in interface
Flushable
flush in class
StreamOutput
IOException
public void close()
throws IOException
StreamOutput
close in interface
Closeable
close in interface
AutoCloseable
close in class
StreamOutput
IOException
public void reset()
throws IOException
reset in class
StreamOutput
IOException