|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.esotericsoftware.kryo.io.Input
com.esotericsoftware.kryo.io.InputChunked
public class InputChunked
An InputStream that reads lengths and chunks of data from another OutputStream, allowing chunks to be skipped.
Constructor Summary | |
---|---|
InputChunked()
Creates an uninitialized InputChunked with a buffer size of 2048. |
|
InputChunked(java.io.InputStream inputStream)
Creates an InputChunked with a buffer size of 2048. |
|
InputChunked(java.io.InputStream inputStream,
int bufferSize)
|
|
InputChunked(int bufferSize)
Creates an uninitialized InputChunked. |
Method Summary | |
---|---|
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(java.io.InputStream inputStream)
Sets a new InputStream. |
Methods inherited from class com.esotericsoftware.kryo.io.Input |
---|
canReadInt, canReadLong, close, getBuffer, getInputStream, limit, position, read, read, read, readBoolean, readByte, readBytes, readBytes, readBytes, readByteUnsigned, readChar, readDouble, readDouble, readFloat, readFloat, readInt, readInt, readLong, readLong, readShort, readShortUnsigned, readString, readStringBuilder, setBuffer, setLimit, setPosition, setTotal, skip, skip, total |
Methods inherited from class java.io.InputStream |
---|
available, mark, markSupported, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputChunked()
public InputChunked(int bufferSize)
public InputChunked(java.io.InputStream inputStream)
public InputChunked(java.io.InputStream inputStream, int bufferSize)
Method Detail |
---|
public void setInputStream(java.io.InputStream inputStream)
Input
setInputStream
in class Input
inputStream
- May be null.public void setBuffer(byte[] bytes, int offset, int count)
Input
setBuffer
in class Input
public void rewind()
Input
rewind
in class Input
protected int fill(byte[] buffer, int offset, int count) throws KryoException
Input
fill
in class Input
KryoException
public void nextChunks()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |