public class OutputChunked extends Output
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, writeStringpublic 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.public void flush()
throws KryoException
Outputflush in interface java.io.Flushableflush in class OutputKryoExceptionpublic void endChunks()