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, writeVLongArraywritepublic OutputStreamStreamOutput(OutputStream out)
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.