Package | Description |
---|---|
com.esotericsoftware.kryo.io |
Modifier and Type | Method and Description |
---|---|
boolean |
Input.canReadInt()
Returns true if enough bytes are available to read an int with
Input.readInt(boolean) . |
boolean |
Input.canReadLong()
Returns true if enough bytes are available to read a long with
Input.readLong(boolean) . |
void |
Output.close()
Flushes any buffered bytes and closes the underlying OutputStream, if any.
|
void |
Input.close()
Closes the underlying InputStream, if any.
|
void |
OutputChunked.flush() |
void |
Output.flush()
Writes the buffered bytes to the underlying OutputStream, if any.
|
int |
Input.read()
Reads a single byte as an int from 0 to 255, or -1 if there are no more bytes are available.
|
int |
Input.read(byte[] bytes)
Reads bytes.length bytes or less and writes them to the specified byte[], starting at 0, and returns the number of bytes
read.
|
int |
Input.read(byte[] bytes,
int offset,
int count)
Reads count bytes or less and writes them to the specified byte[], starting at offset, and returns the number of bytes read
or -1 if no more bytes are available.
|
boolean |
Input.readBoolean()
Reads a 1 byte boolean.
|
byte |
Input.readByte()
Reads a single byte.
|
void |
Input.readBytes(byte[] bytes)
Reads bytes.length bytes and writes them to the specified byte[], starting at index 0.
|
void |
Input.readBytes(byte[] bytes,
int offset,
int count)
Reads count bytes and writes them to the specified byte[], starting at offset.
|
byte[] |
Input.readBytes(int length)
Reads the specified number of bytes into a new byte[].
|
int |
Input.readByteUnsigned()
Reads a byte as an int from 0 to 255.
|
char |
Input.readChar()
Reads a 2 byte char.
|
double |
Input.readDouble()
Reads an 8 bytes double.
|
double |
Input.readDouble(double precision,
boolean optimizePositive)
Reads a 1-9 byte double with reduced precision.
|
float |
Input.readFloat()
Reads a 4 byte float.
|
float |
Input.readFloat(float precision,
boolean optimizePositive)
Reads a 1-5 byte float with reduced precision.
|
int |
Input.readInt()
Reads a 4 byte int.
|
int |
Input.readInt(boolean optimizePositive)
Reads a 1-5 byte int.
|
long |
Input.readLong()
Reads an 8 byte long.
|
long |
Input.readLong(boolean optimizePositive)
Reads a 1-9 byte long.
|
short |
Input.readShort()
Reads a 2 byte short.
|
int |
Input.readShortUnsigned()
Reads a 2 byte short as an int from 0 to 65535.
|
void |
Input.skip(int count)
Discards the specified number of bytes.
|
long |
Input.skip(long count)
Discards the specified number of bytes.
|
void |
Output.write(byte[] bytes)
Writes the bytes.
|
void |
Output.write(byte[] bytes,
int offset,
int length)
Writes the bytes.
|
void |
Output.write(int value)
Writes a byte.
|
void |
Output.writeAscii(java.lang.String value)
Writes a string that is known to contain only ASCII characters.
|
void |
Output.writeBoolean(boolean value)
Writes a 1 byte boolean.
|
void |
Output.writeByte(byte value) |
void |
Output.writeByte(int value) |
void |
Output.writeBytes(byte[] bytes)
Writes the bytes.
|
void |
Output.writeBytes(byte[] bytes,
int offset,
int count)
Writes the bytes.
|
void |
Output.writeChar(char value)
Writes a 2 byte char.
|
void |
Output.writeDouble(double value)
Writes an 8 byte double.
|
int |
Output.writeDouble(double value,
double precision,
boolean optimizePositive)
Writes a 1-9 byte double with reduced precision.
|
void |
Output.writeFloat(float value)
Writes a 4 byte float.
|
int |
Output.writeFloat(float value,
float precision,
boolean optimizePositive)
Writes a 1-5 byte float with reduced precision.
|
void |
Output.writeInt(int value)
Writes a 4 byte int.
|
int |
Output.writeInt(int value,
boolean optimizePositive)
Writes a 1-5 byte int.
|
void |
Output.writeLong(long value)
Writes an 8 byte long.
|
int |
Output.writeLong(long value,
boolean optimizePositive)
Writes a 1-9 byte long.
|
void |
Output.writeShort(int value)
Writes a 2 byte short.
|
void |
Output.writeString(java.lang.CharSequence value)
Writes the length and CharSequence as UTF8, or null.
|
void |
Output.writeString(java.lang.String value)
Writes the length and string, or null.
|