Package | Description |
---|---|
com.esotericsoftware.kryo | |
com.esotericsoftware.kryo.io | |
com.esotericsoftware.kryo.serializers | |
com.esotericsoftware.kryo.util |
Modifier and Type | Method and Description |
---|---|
Input |
StreamFactory.getInput()
Creates an uninitialized Input.
|
Input |
StreamFactory.getInput(byte[] buffer)
Creates a new Input for reading from a byte array.
|
Input |
StreamFactory.getInput(byte[] buffer,
int offset,
int count)
Creates a new Input for reading from a byte array.
|
Input |
StreamFactory.getInput(InputStream inputStream)
Creates a new Input for reading from an InputStream with a buffer size of 4096.
|
Input |
StreamFactory.getInput(InputStream inputStream,
int bufferSize)
Creates a new Input for reading from an InputStream.
|
Input |
StreamFactory.getInput(int bufferSize)
Creates a new Input for reading from a byte array.
|
Modifier and Type | Method and Description |
---|---|
void |
KryoSerializable.read(Kryo kryo,
Input input) |
abstract T |
Serializer.read(Kryo kryo,
Input input,
Class<T> type)
Reads bytes and returns a new object of the specified concrete type.
|
Registration |
ClassResolver.readClass(Input input)
Reads a class and returns its registration.
|
Registration |
Kryo.readClass(Input input)
Reads a class and returns its registration.
|
Object |
Kryo.readClassAndObject(Input input)
Reads the class and object or null using the registered serializer.
|
<T> T |
Kryo.readObject(Input input,
Class<T> type)
Reads an object using the registered serializer.
|
<T> T |
Kryo.readObject(Input input,
Class<T> type,
Serializer serializer)
Reads an object using the specified serializer.
|
<T> T |
Kryo.readObjectOrNull(Input input,
Class<T> type)
Reads an object or null using the registered serializer.
|
<T> T |
Kryo.readObjectOrNull(Input input,
Class<T> type,
Serializer serializer)
Reads an object or null using the specified serializer.
|
Modifier and Type | Class and Description |
---|---|
class |
ByteBufferInput
An InputStream that reads data from a byte array and optionally fills the byte array from another InputStream as needed.
|
class |
FastInput
Same as Input, but does not use variable length encoding for integer types.
|
class |
InputChunked
An InputStream that reads lengths and chunks of data from another OutputStream, allowing chunks to be skipped.
|
class |
UnsafeInput
An optimized InputStream that reads data from a byte array and optionally fills the byte array from another InputStream as
needed.
|
class |
UnsafeMemoryInput
An optimized InputStream that reads data directly from the off-heap memory.
|
Modifier and Type | Field and Description |
---|---|
protected Input |
KryoDataInput.input |
Modifier and Type | Method and Description |
---|---|
void |
KryoDataInput.setInput(Input input) |
Constructor and Description |
---|
KryoDataInput(Input input) |
KryoObjectInput(Kryo kryo,
Input in) |
Modifier and Type | Method and Description |
---|---|
protected TreeSet |
DefaultSerializers.TreeSetSerializer.create(Kryo kryo,
Input input,
Class<Collection> type) |
protected Collection |
CollectionSerializer.create(Kryo kryo,
Input input,
Class<Collection> type)
Used by
CollectionSerializer.read(Kryo, Input, Class) to create the new object. |
protected Map |
DefaultSerializers.TreeMapSerializer.create(Kryo kryo,
Input input,
Class<Map> type) |
protected Map |
MapSerializer.create(Kryo kryo,
Input input,
Class<Map> type)
Used by
MapSerializer.read(Kryo, Input, Class) to create the new object. |
protected T |
FieldSerializer.create(Kryo kryo,
Input input,
Class<T> type)
Used by
FieldSerializer.read(Kryo, Input, Class) to create the new object. |
abstract void |
FieldSerializer.CachedField.read(Input input,
Object object) |
Object |
ClosureSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DeflateSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
BlowfishSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
ExternalizableSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DefaultSerializers.VoidSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DefaultSerializers.CollectionsEmptyListSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DefaultSerializers.CollectionsEmptyMapSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DefaultSerializers.CollectionsEmptySetSerializer.read(Kryo kryo,
Input input,
Class type) |
List |
DefaultSerializers.CollectionsSingletonListSerializer.read(Kryo kryo,
Input input,
Class type) |
Map |
DefaultSerializers.CollectionsSingletonMapSerializer.read(Kryo kryo,
Input input,
Class type) |
Set |
DefaultSerializers.CollectionsSingletonSetSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
JavaSerializer.read(Kryo kryo,
Input input,
Class type) |
BigDecimal |
DefaultSerializers.BigDecimalSerializer.read(Kryo kryo,
Input input,
Class<BigDecimal> type) |
BigInteger |
DefaultSerializers.BigIntegerSerializer.read(Kryo kryo,
Input input,
Class<BigInteger> type) |
boolean[] |
DefaultArraySerializers.BooleanArraySerializer.read(Kryo kryo,
Input input,
Class<boolean[]> type) |
Boolean |
DefaultSerializers.BooleanSerializer.read(Kryo kryo,
Input input,
Class<Boolean> type) |
byte[] |
DefaultArraySerializers.ByteArraySerializer.read(Kryo kryo,
Input input,
Class<byte[]> type) |
Byte |
DefaultSerializers.ByteSerializer.read(Kryo kryo,
Input input,
Class<Byte> type) |
Calendar |
DefaultSerializers.CalendarSerializer.read(Kryo kryo,
Input input,
Class<Calendar> type) |
char[] |
DefaultArraySerializers.CharArraySerializer.read(Kryo kryo,
Input input,
Class<char[]> type) |
Character |
DefaultSerializers.CharSerializer.read(Kryo kryo,
Input input,
Class<Character> type) |
Charset |
DefaultSerializers.CharsetSerializer.read(Kryo kryo,
Input input,
Class<Charset> type) |
Class |
DefaultSerializers.ClassSerializer.read(Kryo kryo,
Input input,
Class<Class> type) |
Collection |
CollectionSerializer.read(Kryo kryo,
Input input,
Class<Collection> type) |
Currency |
DefaultSerializers.CurrencySerializer.read(Kryo kryo,
Input input,
Class<Currency> type) |
Date |
DefaultSerializers.DateSerializer.read(Kryo kryo,
Input input,
Class<Date> type) |
double[] |
DefaultArraySerializers.DoubleArraySerializer.read(Kryo kryo,
Input input,
Class<double[]> type) |
Double |
DefaultSerializers.DoubleSerializer.read(Kryo kryo,
Input input,
Class<Double> type) |
Enum |
EnumNameSerializer.read(Kryo kryo,
Input input,
Class<Enum> type) |
Enum |
DefaultSerializers.EnumSerializer.read(Kryo kryo,
Input input,
Class<Enum> type) |
EnumSet |
DefaultSerializers.EnumSetSerializer.read(Kryo kryo,
Input input,
Class<EnumSet> type) |
float[] |
DefaultArraySerializers.FloatArraySerializer.read(Kryo kryo,
Input input,
Class<float[]> type) |
Float |
DefaultSerializers.FloatSerializer.read(Kryo kryo,
Input input,
Class<Float> type) |
int[] |
DefaultArraySerializers.IntArraySerializer.read(Kryo kryo,
Input input,
Class<int[]> type) |
Integer |
DefaultSerializers.IntSerializer.read(Kryo kryo,
Input input,
Class<Integer> type) |
KryoSerializable |
DefaultSerializers.KryoSerializableSerializer.read(Kryo kryo,
Input input,
Class<KryoSerializable> type) |
Locale |
DefaultSerializers.LocaleSerializer.read(Kryo kryo,
Input input,
Class<Locale> type) |
long[] |
DefaultArraySerializers.LongArraySerializer.read(Kryo kryo,
Input input,
Class<long[]> type) |
Long |
DefaultSerializers.LongSerializer.read(Kryo kryo,
Input input,
Class<Long> type) |
Map |
MapSerializer.read(Kryo kryo,
Input input,
Class<Map> type) |
Object[] |
DefaultArraySerializers.ObjectArraySerializer.read(Kryo kryo,
Input input,
Class<Object[]> type) |
short[] |
DefaultArraySerializers.ShortArraySerializer.read(Kryo kryo,
Input input,
Class<short[]> type) |
Short |
DefaultSerializers.ShortSerializer.read(Kryo kryo,
Input input,
Class<Short> type) |
String[] |
DefaultArraySerializers.StringArraySerializer.read(Kryo kryo,
Input input,
Class<String[]> type) |
String |
DefaultSerializers.StringSerializer.read(Kryo kryo,
Input input,
Class<String> type) |
StringBuffer |
DefaultSerializers.StringBufferSerializer.read(Kryo kryo,
Input input,
Class<StringBuffer> type) |
StringBuilder |
DefaultSerializers.StringBuilderSerializer.read(Kryo kryo,
Input input,
Class<StringBuilder> type) |
T |
VersionFieldSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
T |
CompatibleFieldSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
T |
BeanSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
T |
TaggedFieldSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
T |
FieldSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
TimeZone |
DefaultSerializers.TimeZoneSerializer.read(Kryo kryo,
Input input,
Class<TimeZone> type) |
URL |
DefaultSerializers.URLSerializer.read(Kryo kryo,
Input input,
Class<URL> type) |
Modifier and Type | Method and Description |
---|---|
Input |
FastestStreamFactory.getInput() |
Input |
DefaultStreamFactory.getInput() |
Input |
FastestStreamFactory.getInput(byte[] buffer) |
Input |
DefaultStreamFactory.getInput(byte[] buffer) |
Input |
FastestStreamFactory.getInput(byte[] buffer,
int offset,
int count) |
Input |
DefaultStreamFactory.getInput(byte[] buffer,
int offset,
int count) |
Input |
FastestStreamFactory.getInput(InputStream inputStream) |
Input |
DefaultStreamFactory.getInput(InputStream inputStream) |
Input |
FastestStreamFactory.getInput(InputStream inputStream,
int bufferSize) |
Input |
DefaultStreamFactory.getInput(InputStream inputStream,
int bufferSize) |
Input |
FastestStreamFactory.getInput(int bufferSize) |
Input |
DefaultStreamFactory.getInput(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
Registration |
DefaultClassResolver.readClass(Input input) |
protected Registration |
DefaultClassResolver.readName(Input input) |
Copyright © 2018. All rights reserved.