public class DefaultProtoStreamReader extends DefaultProtoStreamOperation implements ProtoStreamReader, org.infinispan.protostream.ProtobufTagMarshaller.ReadContext
ProtoStreamWriter implementation that reads from a TagReader.ProtoStreamOperation.Context| Constructor and Description |
|---|
DefaultProtoStreamReader(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkLastTagWas(int tag) |
org.infinispan.protostream.TagReader |
getReader() |
boolean |
isAtEnd() |
void |
popLimit(int oldLimit) |
int |
pushLimit(int limit) |
boolean |
readBool() |
byte[] |
readByteArray() |
ByteBuffer |
readByteBuffer() |
double |
readDouble() |
int |
readEnum() |
int |
readFixed32()
Deprecated.
|
long |
readFixed64()
Deprecated.
|
float |
readFloat() |
int |
readInt32()
Deprecated.
|
long |
readInt64()
Deprecated.
|
<T> T |
readObject(Class<T> targetClass)
Reads an object of the specified type from this reader.
|
int |
readSFixed32() |
long |
readSFixed64() |
int |
readSInt32() |
long |
readSInt64() |
String |
readString() |
int |
readTag() |
int |
readUInt32() |
long |
readUInt64() |
boolean |
skipField(int tag) |
getParam, getSerializationContext, setParamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, readAny, readAny, readEnumfindMarshaller, getSerializationContextpublic DefaultProtoStreamReader(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext context)
public org.infinispan.protostream.TagReader getReader()
getReader in interface org.infinispan.protostream.ProtobufTagMarshaller.ReadContextpublic <T> T readObject(Class<T> targetClass) throws IOException
ProtoStreamReaderreadObject in interface ProtoStreamReaderT - the type of the associated marshallertargetClass - the class of the associated marshallerIOException - if no marshaller is associated with the specified class, or if the object could not be read with the associated marshaller.public int pushLimit(int limit)
throws IOException
pushLimit in interface org.infinispan.protostream.RawProtoStreamReaderpushLimit in interface org.infinispan.protostream.TagReaderIOExceptionpublic void popLimit(int oldLimit)
popLimit in interface org.infinispan.protostream.RawProtoStreamReaderpopLimit in interface org.infinispan.protostream.TagReaderpublic boolean isAtEnd()
throws IOException
isAtEnd in interface org.infinispan.protostream.TagReaderIOExceptionpublic int readTag()
throws IOException
readTag in interface org.infinispan.protostream.RawProtoStreamReaderreadTag in interface org.infinispan.protostream.TagReaderIOExceptionpublic void checkLastTagWas(int tag)
throws IOException
checkLastTagWas in interface org.infinispan.protostream.RawProtoStreamReadercheckLastTagWas in interface org.infinispan.protostream.TagReaderIOExceptionpublic boolean skipField(int tag)
throws IOException
skipField in interface org.infinispan.protostream.RawProtoStreamReaderskipField in interface org.infinispan.protostream.TagReaderIOExceptionpublic boolean readBool()
throws IOException
readBool in interface org.infinispan.protostream.RawProtoStreamReaderreadBool in interface org.infinispan.protostream.TagReaderIOExceptionpublic int readEnum()
throws IOException
readEnum in interface org.infinispan.protostream.RawProtoStreamReaderreadEnum in interface org.infinispan.protostream.TagReaderIOException@Deprecated public int readInt32() throws IOException
ProtoStreamReaderreadInt32 in interface org.infinispan.protostream.RawProtoStreamReaderreadInt32 in interface org.infinispan.protostream.TagReaderreadInt32 in interface ProtoStreamReaderIOException@Deprecated public int readFixed32() throws IOException
ProtoStreamReaderreadFixed32 in interface org.infinispan.protostream.RawProtoStreamReaderreadFixed32 in interface org.infinispan.protostream.TagReaderreadFixed32 in interface ProtoStreamReaderIOExceptionpublic int readUInt32()
throws IOException
readUInt32 in interface org.infinispan.protostream.RawProtoStreamReaderreadUInt32 in interface org.infinispan.protostream.TagReaderIOExceptionpublic int readSInt32()
throws IOException
readSInt32 in interface org.infinispan.protostream.RawProtoStreamReaderreadSInt32 in interface org.infinispan.protostream.TagReaderIOExceptionpublic int readSFixed32()
throws IOException
readSFixed32 in interface org.infinispan.protostream.RawProtoStreamReaderreadSFixed32 in interface org.infinispan.protostream.TagReaderIOException@Deprecated public long readInt64() throws IOException
ProtoStreamReaderreadInt64 in interface org.infinispan.protostream.RawProtoStreamReaderreadInt64 in interface org.infinispan.protostream.TagReaderreadInt64 in interface ProtoStreamReaderIOException@Deprecated public long readFixed64() throws IOException
ProtoStreamReaderreadFixed64 in interface org.infinispan.protostream.RawProtoStreamReaderreadFixed64 in interface org.infinispan.protostream.TagReaderreadFixed64 in interface ProtoStreamReaderIOExceptionpublic long readUInt64()
throws IOException
readUInt64 in interface org.infinispan.protostream.RawProtoStreamReaderreadUInt64 in interface org.infinispan.protostream.TagReaderIOExceptionpublic long readSInt64()
throws IOException
readSInt64 in interface org.infinispan.protostream.RawProtoStreamReaderreadSInt64 in interface org.infinispan.protostream.TagReaderIOExceptionpublic long readSFixed64()
throws IOException
readSFixed64 in interface org.infinispan.protostream.RawProtoStreamReaderreadSFixed64 in interface org.infinispan.protostream.TagReaderIOExceptionpublic float readFloat()
throws IOException
readFloat in interface org.infinispan.protostream.RawProtoStreamReaderreadFloat in interface org.infinispan.protostream.TagReaderIOExceptionpublic double readDouble()
throws IOException
readDouble in interface org.infinispan.protostream.RawProtoStreamReaderreadDouble in interface org.infinispan.protostream.TagReaderIOExceptionpublic byte[] readByteArray()
throws IOException
readByteArray in interface org.infinispan.protostream.RawProtoStreamReaderreadByteArray in interface org.infinispan.protostream.TagReaderIOExceptionpublic ByteBuffer readByteBuffer() throws IOException
readByteBuffer in interface org.infinispan.protostream.RawProtoStreamReaderreadByteBuffer in interface org.infinispan.protostream.TagReaderIOExceptionpublic String readString() throws IOException
readString in interface org.infinispan.protostream.RawProtoStreamReaderreadString in interface org.infinispan.protostream.TagReaderIOExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.