public class OutputChunked extends Output
Output that writes the length before each flush. The length allows the chunks to be skipped when reading.buffer, capacity, maxCapacity, outputStream, position, total, varEncoding| Constructor and Description |
|---|
OutputChunked() |
OutputChunked(int bufferSize) |
OutputChunked(java.io.OutputStream outputStream) |
OutputChunked(java.io.OutputStream outputStream,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
endChunk()
Marks the curent written data as the end of a chunk.
|
void |
flush()
Flushes the buffered bytes.
|
close, getBuffer, getMaxCapacity, getOutputStream, getVariableLengthEncoding, intLength, longLength, position, require, reset, setBuffer, setBuffer, setOutputStream, setPosition, setVariableLengthEncoding, toBytes, total, varIntLength, varLongLength, write, write, write, writeAscii, writeBoolean, writeBooleans, writeByte, writeByte, writeBytes, writeBytes, writeChar, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInt, writeInts, writeInts, writeLong, writeLong, writeLongs, writeLongs, writeShort, writeShorts, writeString, writeVarDouble, writeVarFloat, writeVarInt, writeVarIntFlag, writeVarLongpublic OutputChunked()
Output.Output()public OutputChunked(int bufferSize)
Output.Output(int)public OutputChunked(java.io.OutputStream outputStream)
Output.Output(OutputStream)public OutputChunked(java.io.OutputStream outputStream,
int bufferSize)
Output.Output(OutputStream, int)public void flush()
throws KryoException
OutputOutputStream, if any, and sets the position to 0. Can be overridden to flush the bytes somewhere else.flush in interface java.io.Flushableflush in class OutputKryoExceptionpublic void endChunk()
Copyright © 2019. All Rights Reserved.