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, totalmark, markSupported, resetpublic InputChunked()
public InputChunked(int bufferSize)
public InputChunked(InputStream inputStream)
public InputChunked(InputStream inputStream, int bufferSize)
public void setInputStream(InputStream inputStream)
InputsetInputStream in class InputinputStream - May be null.public void setBuffer(byte[] bytes,
int offset,
int count)
Inputpublic void rewind()
Inputprotected int fill(byte[] buffer,
int offset,
int count)
throws KryoException
Inputfill in class InputKryoExceptionpublic void nextChunks()
Copyright © 2023. All rights reserved.