org.elasticsearch.common.io.stream
Class OutputStreamStreamOutput
java.lang.Object
java.io.OutputStream
org.elasticsearch.common.io.stream.StreamOutput
org.elasticsearch.common.io.stream.OutputStreamStreamOutput
- All Implemented Interfaces:
- Closeable, Flushable
public class OutputStreamStreamOutput
- extends StreamOutput
Method Summary |
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. |
Methods inherited from class org.elasticsearch.common.io.stream.StreamOutput |
position, seek, seekPositionSupported, write, write, writeBoolean, writeBytes, writeBytes, writeBytesReference, writeDouble, writeFloat, writeGenericValue, writeInt, writeLong, writeMap, writeOptionalString, writeOptionalUTF, writeShort, writeString, writeStringArray, writeText, writeUTF, writeVInt, writeVLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputStreamStreamOutput
public OutputStreamStreamOutput(OutputStream out)
writeByte
public void writeByte(byte b)
throws IOException
- Description copied from class:
StreamOutput
- Writes a single byte.
- Specified by:
writeByte
in class StreamOutput
- Throws:
IOException
writeBytes
public void writeBytes(byte[] b,
int offset,
int length)
throws IOException
- Description copied from class:
StreamOutput
- Writes an array of bytes.
- Specified by:
writeBytes
in class StreamOutput
- Parameters:
b
- the bytes to writeoffset
- the offset in the byte arraylength
- the number of bytes to write
- Throws:
IOException
flush
public void flush()
throws IOException
- Description copied from class:
StreamOutput
- Forces any buffered output to be written.
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class StreamOutput
- Throws:
IOException
close
public void close()
throws IOException
- Description copied from class:
StreamOutput
- Closes this stream to further operations.
- Specified by:
close
in interface Closeable
- Specified by:
close
in class StreamOutput
- Throws:
IOException
reset
public void reset()
throws IOException
- Specified by:
reset
in class StreamOutput
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.