|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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. |
abstract void |
reset()
|
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 |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int i)
Writes an int as four bytes. |
void |
writeLong(long i)
Writes a long as eight bytes. |
void |
writeShort(short v)
|
void |
writeUTF(java.lang.String str)
Writes a 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 abstract void writeByte(byte b) throws java.io.IOException
java.io.IOException
public void writeBytes(byte[] b) throws java.io.IOException
b
- the bytes to write
java.io.IOException
public void writeBytes(byte[] b, int length) throws java.io.IOException
b
- the bytes to writelength
- the number of bytes to write
java.io.IOException
public abstract void writeBytes(byte[] b, int offset, int length) throws java.io.IOException
b
- the bytes to writeoffset
- the offset in the byte arraylength
- the number of bytes to write
java.io.IOException
public final void writeShort(short v) throws java.io.IOException
java.io.IOException
public void writeInt(int i) throws java.io.IOException
java.io.IOException
public void writeVInt(int i) throws java.io.IOException
java.io.IOException
public void writeLong(long i) throws java.io.IOException
java.io.IOException
public void writeVLong(long i) throws java.io.IOException
java.io.IOException
public void writeUTF(java.lang.String str) throws java.io.IOException
java.io.IOException
public void writeFloat(float v) throws java.io.IOException
java.io.IOException
public void writeDouble(double v) throws java.io.IOException
java.io.IOException
public void writeBoolean(boolean b) throws java.io.IOException
java.io.IOException
public abstract void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
public abstract void reset() throws java.io.IOException
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |