public class JacksonObjectInput extends Object implements ObjectInput
| 构造器和说明 |
|---|
JacksonObjectInput(InputStream inputstream) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 JacksonObjectInput(InputStream inputstream) throws IOException
IOExceptionpublic boolean readBool()
throws IOException
DataInputreadBool 在接口中 DataInputIOExceptionpublic byte readByte()
throws IOException
DataInputreadByte 在接口中 DataInputIOExceptionpublic short readShort()
throws IOException
DataInputreadShort 在接口中 DataInputIOExceptionpublic int readInt()
throws IOException
DataInputreadInt 在接口中 DataInputIOExceptionpublic long readLong()
throws IOException
DataInputreadLong 在接口中 DataInputIOExceptionpublic float readFloat()
throws IOException
DataInputreadFloat 在接口中 DataInputIOExceptionpublic double readDouble()
throws IOException
DataInputreadDouble 在接口中 DataInputIOExceptionpublic String readUTF() throws IOException
DataInputreadUTF 在接口中 DataInputIOExceptionpublic byte[] readBytes()
throws IOException
DataInputreadBytes 在接口中 DataInputIOExceptionpublic Object readObject() throws IOException, ClassNotFoundException
ObjectInputreadObject 在接口中 ObjectInputIOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
ObjectInputreadObject 在接口中 ObjectInputcls - object type.IOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
ObjectInputreadObject 在接口中 ObjectInputcls - object type.IOExceptionClassNotFoundExceptionCopyright © 2018. All rights reserved.