public class GenericProtobufObjectInput extends Object implements ObjectInput
| 构造器和说明 |
|---|
GenericProtobufObjectInput(InputStream in) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
public GenericProtobufObjectInput(InputStream in)
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()
readObject 在接口中 ObjectInputpublic <T> T readObject(Class<T> cls) throws IOException
readObject 在接口中 ObjectInputIOExceptionpublic <T> T readObject(Class<T> cls, Type type) throws IOException
readObject 在接口中 ObjectInputIOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.