java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic class DataOutputStreamOutput extends StreamOutput
| Constructor | Description |
|---|---|
DataOutputStreamOutput(java.io.DataOutput 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, hasFeature, position, seek, setFeatures, 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, writeOptionalTimeValue, writeOptionalTimeZone, writeOptionalVInt, writeOptionalWriteable, writeShort, writeStreamableList, writeString, writeStringArray, writeStringArrayNullable, writeStringList, writeText, writeTimeValue, writeTimeZone, writeVInt, writeVIntArray, writeVLong, writeVLongArray, writeZLongpublic 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 reset()
throws java.io.IOException
reset in class StreamOutputjava.io.IOExceptionpublic void close()
throws java.io.IOException
StreamOutputclose in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class StreamOutputjava.io.IOException