public class KryoObjectInput extends Object implements ObjectInput, Cleanable
| Constructor and Description |
|---|
KryoObjectInput(InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Implementations must implement this cleanup method
|
boolean |
readBool()
Read boolean.
|
byte |
readByte()
Read byte.
|
byte[] |
readBytes()
Read byte array.
|
double |
readDouble()
Read double.
|
float |
readFloat()
Read float.
|
int |
readInt()
Read integer.
|
long |
readLong()
Read long.
|
Object |
readObject()
Consider use
ObjectInput.readObject(Class) or ObjectInput.readObject(Class, Type) where possible |
<T> T |
readObject(Class<T> clazz)
read object
|
<T> T |
readObject(Class<T> clazz,
Type type)
read object
|
short |
readShort()
Read short integer.
|
String |
readUTF()
Read UTF-8 string.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAttachments, readEvent, readThrowablepublic KryoObjectInput(InputStream inputStream)
public boolean readBool()
throws IOException
DataInputreadBool in interface DataInputIOExceptionpublic byte readByte()
throws IOException
DataInputreadByte in interface DataInputIOExceptionpublic short readShort()
throws IOException
DataInputreadShort in interface DataInputIOExceptionpublic int readInt()
throws IOException
DataInputreadInt in interface DataInputIOExceptionpublic long readLong()
throws IOException
DataInputreadLong in interface DataInputIOExceptionpublic float readFloat()
throws IOException
DataInputreadFloat in interface DataInputIOExceptionpublic double readDouble()
throws IOException
DataInputreadDouble in interface DataInputIOExceptionpublic byte[] readBytes()
throws IOException
DataInputreadBytes in interface DataInputIOExceptionpublic String readUTF() throws IOException
DataInputreadUTF in interface DataInputIOExceptionpublic Object readObject() throws IOException, ClassNotFoundException
ObjectInputObjectInput.readObject(Class) or ObjectInput.readObject(Class, Type) where possiblereadObject in interface ObjectInputIOException - if an I/O error occursClassNotFoundException - if an ClassNotFoundException occurspublic <T> T readObject(Class<T> clazz) throws IOException, ClassNotFoundException
ObjectInputreadObject in interface ObjectInputclazz - object classIOException - if an I/O error occursClassNotFoundException - if an ClassNotFoundException occurspublic <T> T readObject(Class<T> clazz, Type type) throws IOException, ClassNotFoundException
ObjectInputreadObject in interface ObjectInputclazz - object classtype - object typeIOException - if an I/O error occursClassNotFoundException - if an ClassNotFoundException occursCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.