|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.esotericsoftware.kryo.io.Output
com.esotericsoftware.kryo.io.OutputChunked
public class OutputChunked
An OutputStream that buffers data in a byte array and flushes to another OutputStream, writing the length before each flush. The length allows the chunks to be skipped when reading.
Constructor Summary | |
---|---|
OutputChunked()
Creates an uninitialized OutputChunked with a maximum chunk size of 2048. |
|
OutputChunked(int bufferSize)
Creates an uninitialized OutputChunked. |
|
OutputChunked(java.io.OutputStream outputStream)
Creates an OutputChunked with a maximum chunk size of 2048. |
|
OutputChunked(java.io.OutputStream outputStream,
int bufferSize)
|
Method Summary | |
---|---|
void |
endChunks()
Marks the end of some data that may have been written by any number of chunks. |
void |
flush()
Writes the buffered bytes to the underlying OutputStream, if any. |
Methods inherited from class com.esotericsoftware.kryo.io.Output |
---|
clear, close, getBuffer, getOutputStream, intLength, longLength, position, setBuffer, setBuffer, setOutputStream, setPosition, toBytes, total, write, write, write, writeAscii, writeBoolean, writeByte, writeByte, writeBytes, writeBytes, writeChar, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLong, writeLong, writeShort, writeString, writeString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputChunked()
public OutputChunked(int bufferSize)
bufferSize
- The maximum size of a chunk.public OutputChunked(java.io.OutputStream outputStream)
public OutputChunked(java.io.OutputStream outputStream, int bufferSize)
bufferSize
- The maximum size of a chunk.Method Detail |
---|
public void flush() throws KryoException
Output
flush
in interface java.io.Flushable
flush
in class Output
KryoException
public void endChunks()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |