public class FastJsonObjectInput extends Object implements ObjectInput
| Constructor and Description |
|---|
FastJsonObjectInput(InputStream in) |
FastJsonObjectInput(Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
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()
read object.
|
<T> T |
readObject(Class<T> cls)
read object.
|
<T> T |
readObject(Class<T> cls,
Type type)
read object.
|
short |
readShort()
Read short integer.
|
String |
readUTF()
Read UTF-8 string.
|
public FastJsonObjectInput(InputStream in)
public FastJsonObjectInput(Reader reader)
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 String readUTF() throws IOException
DataInputreadUTF in interface DataInputIOExceptionpublic byte[] readBytes()
throws IOException
DataInputreadBytes in interface DataInputIOExceptionpublic Object readObject() throws IOException, ClassNotFoundException
ObjectInputreadObject in interface ObjectInputIOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
ObjectInputreadObject in interface ObjectInputcls - object type.IOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
ObjectInputreadObject in interface ObjectInputcls - object type.IOExceptionClassNotFoundExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.