public class OutputChunked extends Output
buffer, capacity, maxCapacity, outputStream, position, total
Constructor and Description |
---|
OutputChunked()
Creates an uninitialized OutputChunked with a maximum chunk size of 2048.
|
OutputChunked(int bufferSize)
Creates an uninitialized OutputChunked.
|
OutputChunked(OutputStream outputStream)
Creates an OutputChunked with a maximum chunk size of 2048.
|
OutputChunked(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, require, setBuffer, setBuffer, setOutputStream, setPosition, toBytes, total, write, write, write, writeAscii, writeBoolean, writeByte, writeByte, writeBytes, writeBytes, writeChar, writeChars, writeDouble, writeDouble, writeDoubles, writeFloat, writeFloat, writeFloats, writeInt, writeInt, writeInts, writeInts, writeLong, writeLong, writeLongs, writeLongs, writeShort, writeShorts, writeString, writeString, writeVarInt, writeVarLong
public OutputChunked()
public OutputChunked(int bufferSize)
bufferSize
- The maximum size of a chunk.public OutputChunked(OutputStream outputStream)
public OutputChunked(OutputStream outputStream, int bufferSize)
bufferSize
- The maximum size of a chunk.public void flush() throws KryoException
Output
flush
in interface Flushable
flush
in class Output
KryoException
public void endChunks()
Copyright © 2018. All rights reserved.