Class DataOutputStreamOutput
- java.lang.Object
-
- java.io.OutputStream
-
- org.elasticsearch.common.io.stream.StreamOutput
-
- org.elasticsearch.common.io.stream.DataOutputStreamOutput
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class DataOutputStreamOutput extends StreamOutput
-
-
Constructor Summary
Constructors Constructor Description DataOutputStreamOutput(java.io.DataOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this stream to further operations.voidflush()Forces any buffered output to be written.voidreset()voidwriteByte(byte b)Writes a single byte.voidwriteBytes(byte[] b, int offset, int length)Writes an array of bytes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.elasticsearch.common.io.stream.StreamOutput
getVersion, hasFeature, position, seek, setFeatures, setVersion, write, write, writeArray, writeArray, writeBoolean, writeByteArray, writeBytes, writeBytes, writeBytesRef, writeBytesReference, writeCollection, writeDouble, writeDoubleArray, writeEnum, writeEnumSet, 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, writeZLong
-
-
-
-
Method Detail
-
writeByte
public void writeByte(byte b) throws java.io.IOExceptionDescription copied from class:StreamOutputWrites a single byte.- Specified by:
writeBytein classStreamOutput- Throws:
java.io.IOException
-
writeBytes
public void writeBytes(byte[] b, int offset, int length) throws java.io.IOExceptionDescription copied from class:StreamOutputWrites an array of bytes.- Specified by:
writeBytesin classStreamOutput- Parameters:
b- the bytes to writeoffset- the offset in the byte arraylength- the number of bytes to write- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOExceptionDescription copied from class:StreamOutputForces any buffered output to be written.- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classStreamOutput- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException- Specified by:
resetin classStreamOutput- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOExceptionDescription copied from class:StreamOutputCloses this stream to further operations.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classStreamOutput- Throws:
java.io.IOException
-
-