public class OutputStreamStreamOutput extends StreamOutput
Constructor and Description |
---|
OutputStreamStreamOutput(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this stream to further operations.
|
void |
flush()
Forces any buffered output to be 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, setVersion, write, write, writeBoolean, writeByteArray, writeBytes, writeBytes, writeBytesRef, writeBytesReference, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeGenericValue, writeGeoPoint, writeInt, writeIntArray, writeList, writeLong, writeLongArray, writeMap, writeOptionalBoolean, writeOptionalStreamable, writeOptionalString, writeOptionalText, writeOptionalVInt, writeShort, writeString, writeStringArray, writeStringArrayNullable, writeTaskStatus, writeText, writeThrowable, writeVInt, writeVIntArray, writeVLong, writeVLongArray
write
public OutputStreamStreamOutput(OutputStream out)
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 writeoffset
- the offset in the byte arraylength
- the number of bytes to writeIOException
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
Copyright © 2009–2017. All rights reserved.