public class OutputStreamStreamOutput extends StreamOutput
| Constructor and Description |
|---|
OutputStreamStreamOutput(java.io.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, writeArray, writeBoolean, writeByteArray, writeBytes, writeBytes, writeBytesRef, writeBytesReference, writeDouble, writeDoubleArray, writeException, writeFloat, writeFloatArray, writeGenericValue, writeGeoPoint, writeInt, writeIntArray, writeList, writeLong, writeLongArray, writeMap, writeMapOfLists, writeMapWithConsistentOrder, writeNamedWriteable, writeNamedWriteableList, writeOptionalArray, writeOptionalBoolean, writeOptionalBytesReference, writeOptionalDouble, writeOptionalFloat, writeOptionalLong, writeOptionalNamedWriteable, writeOptionalStreamable, writeOptionalString, writeOptionalStringArray, writeOptionalText, writeOptionalTimeZone, writeOptionalVInt, writeOptionalWriteable, writeShort, writeStreamableList, writeString, writeStringArray, writeStringArrayNullable, writeStringList, writeText, writeTimeZone, writeVInt, writeVIntArray, writeVLong, writeVLongArray, writeZLongpublic OutputStreamStreamOutput(java.io.OutputStream out)
public void writeByte(byte b)
throws java.io.IOException
StreamOutputwriteByte in class StreamOutputjava.io.IOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws java.io.IOException
StreamOutputwriteBytes in class StreamOutputb - the bytes to writeoffset - the offset in the byte arraylength - the number of bytes to writejava.io.IOExceptionpublic void flush()
throws java.io.IOException
StreamOutputflush in interface java.io.Flushableflush in class StreamOutputjava.io.IOExceptionpublic void close()
throws java.io.IOException
StreamOutputclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class StreamOutputjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class StreamOutputjava.io.IOException