public class InputChunked extends Input
Constructor and Description |
---|
InputChunked()
Creates an uninitialized InputChunked with a buffer size of 2048.
|
InputChunked(InputStream inputStream)
Creates an InputChunked with a buffer size of 2048.
|
InputChunked(InputStream inputStream,
int bufferSize) |
InputChunked(int bufferSize)
Creates an uninitialized InputChunked.
|
Modifier and Type | Method and Description |
---|---|
protected int |
fill(byte[] buffer,
int offset,
int count)
Fills the buffer with more bytes.
|
void |
nextChunks()
Advances the stream to the next set of chunks.
|
void |
rewind()
Sets the position and total to zero.
|
void |
setBuffer(byte[] bytes,
int offset,
int count)
Sets a new buffer.
|
void |
setInputStream(InputStream inputStream)
Sets a new InputStream.
|
available, canReadInt, canReadLong, close, eof, getBuffer, getInputStream, limit, position, read, read, read, readBoolean, readByte, readBytes, readBytes, readBytes, readByteUnsigned, readChar, readChars, readDouble, readDouble, readDoubles, readFloat, readFloat, readFloats, readInt, readInt, readInts, readInts, readLong, readLong, readLongs, readLongs, readShort, readShorts, readShortUnsigned, readString, readStringBuilder, readVarInt, readVarLong, require, setBuffer, setLimit, setPosition, setTotal, skip, skip, total
mark, markSupported, reset
public InputChunked()
public InputChunked(int bufferSize)
public InputChunked(InputStream inputStream)
public InputChunked(InputStream inputStream, int bufferSize)
public void setInputStream(InputStream inputStream)
Input
setInputStream
in class Input
inputStream
- May be null.public void setBuffer(byte[] bytes, int offset, int count)
Input
public void rewind()
Input
protected int fill(byte[] buffer, int offset, int count) throws KryoException
Input
fill
in class Input
KryoException
public void nextChunks()
Copyright © 2018. All rights reserved.