public class FastJsonObjectInput extends Object implements ObjectInput
| 构造器和说明 |
|---|
FastJsonObjectInput(InputStream in) |
FastJsonObjectInput(Reader reader) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
readBool() |
byte |
readByte() |
byte[] |
readBytes() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
Object |
readObject() |
<T> T |
readObject(Class<T> cls) |
<T> T |
readObject(Class<T> cls,
Type type) |
short |
readShort() |
String |
readUTF() |
readAttachments, readEvent, readThrowablepublic FastJsonObjectInput(InputStream in)
public FastJsonObjectInput(Reader reader)
public boolean readBool()
throws IOException
readBool 在接口中 DataInputIOExceptionpublic byte readByte()
throws IOException
readByte 在接口中 DataInputIOExceptionpublic short readShort()
throws IOException
readShort 在接口中 DataInputIOExceptionpublic int readInt()
throws IOException
readInt 在接口中 DataInputIOExceptionpublic long readLong()
throws IOException
readLong 在接口中 DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat 在接口中 DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble 在接口中 DataInputIOExceptionpublic String readUTF() throws IOException
readUTF 在接口中 DataInputIOExceptionpublic byte[] readBytes()
throws IOException
readBytes 在接口中 DataInputIOExceptionpublic Object readObject() throws IOException, ClassNotFoundException
readObject 在接口中 ObjectInputIOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
readObject 在接口中 ObjectInputIOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
readObject 在接口中 ObjectInputIOExceptionClassNotFoundExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.