public class OutputStreamStreamOutput extends StreamOutput
| Constructor | Description |
|---|---|
OutputStreamStreamOutput(java.io.OutputStream out) |
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVersion, position, seek, setVersion, write, write, writeArray, writeArray, writeBoolean, writeByteArray, writeBytes, writeBytes, writeBytesRef, writeBytesReference, writeDouble, writeDoubleArray, writeEnum, writeException, writeFloat, writeFloatArray, writeGenericValue, writeGeoPoint, writeInt, writeIntArray, writeList, writeLong, writeLongArray, writeMap, 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 class StreamOutputjava.io.IOExceptionpublic void close()
throws java.io.IOException
StreamOutputclose in class StreamOutputjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class StreamOutputjava.io.IOException