|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream org.elasticsearch.common.io.stream.StreamOutput
public abstract class StreamOutput
Constructor Summary | |
---|---|
StreamOutput()
|
Method Summary | |
---|---|
abstract void |
close()
Closes this stream to further operations. |
abstract void |
flush()
Forces any buffered output to be written. |
long |
position()
|
abstract void |
reset()
|
void |
seek(long position)
|
boolean |
seekPositionSupported()
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
void |
writeBoolean(boolean b)
Writes a boolean. |
abstract void |
writeByte(byte b)
Writes a single byte. |
void |
writeBytes(byte[] b)
Writes an array of bytes. |
void |
writeBytes(byte[] b,
int length)
Writes an array of bytes. |
abstract void |
writeBytes(byte[] b,
int offset,
int length)
Writes an array of bytes. |
void |
writeBytesReference(BytesReference bytes)
Writes the bytes reference, including a length header. |
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeGenericValue(Object value)
|
void |
writeInt(int i)
Writes an int as four bytes. |
void |
writeLong(long i)
Writes a long as eight bytes. |
void |
writeMap(Map<String,Object> map)
|
void |
writeOptionalString(String str)
|
void |
writeOptionalUTF(String str)
Deprecated. |
void |
writeShort(short v)
|
void |
writeString(String str)
|
void |
writeStringArray(String[] array)
|
void |
writeText(Text text)
|
void |
writeUTF(String str)
Deprecated. use writeString(String) |
void |
writeVInt(int i)
Writes an int in a variable-length format. |
void |
writeVLong(long i)
Writes an long in a variable-length format. |
Methods inherited from class java.io.OutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamOutput()
Method Detail |
---|
public boolean seekPositionSupported()
public long position() throws IOException
IOException
public void seek(long position) throws IOException
IOException
public abstract void writeByte(byte b) throws IOException
IOException
public void writeBytes(byte[] b) throws IOException
b
- the bytes to write
IOException
public void writeBytes(byte[] b, int length) throws IOException
b
- the bytes to writelength
- the number of bytes to write
IOException
public abstract void writeBytes(byte[] b, int offset, int length) throws IOException
b
- the bytes to writeoffset
- the offset in the byte arraylength
- the number of bytes to write
IOException
public void writeBytesReference(@Nullable BytesReference bytes) throws IOException
IOException
public final void writeShort(short v) throws IOException
IOException
public void writeInt(int i) throws IOException
IOException
public void writeVInt(int i) throws IOException
IOException
public void writeLong(long i) throws IOException
IOException
public void writeVLong(long i) throws IOException
IOException
@Deprecated public void writeOptionalUTF(@Nullable String str) throws IOException
IOException
public void writeOptionalString(@Nullable String str) throws IOException
IOException
public void writeText(Text text) throws IOException
IOException
public void writeString(String str) throws IOException
IOException
@Deprecated public void writeUTF(String str) throws IOException
writeString(String)
IOException
public void writeFloat(float v) throws IOException
IOException
public void writeDouble(double v) throws IOException
IOException
public void writeBoolean(boolean b) throws IOException
IOException
public abstract void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public abstract void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
public abstract void reset() throws IOException
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void writeStringArray(String[] array) throws IOException
IOException
public void writeMap(@Nullable Map<String,Object> map) throws IOException
IOException
public void writeGenericValue(@Nullable Object value) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |