public class DefaultProtoStreamReader extends Object implements ProtoStreamReader
ProtoStreamWriter implementation that reads from a CodedInputStream.| Constructor and Description |
|---|
DefaultProtoStreamReader(org.infinispan.protostream.ImmutableSerializationContext context,
protostream.com.google.protobuf.CodedInputStream input) |
DefaultProtoStreamReader(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkLastTagWas(int tag) |
org.infinispan.protostream.ImmutableSerializationContext |
getSerializationContext() |
void |
popLimit(int oldLimit) |
int |
pushLimit(int limit) |
boolean |
readBool() |
byte[] |
readByteArray() |
ByteBuffer |
readByteBuffer() |
double |
readDouble() |
int |
readEnum() |
<E extends Enum<E>> |
readEnum(Class<E> enumClass) |
int |
readFixed32() |
long |
readFixed64() |
float |
readFloat() |
int |
readInt32() |
long |
readInt64() |
<T> T |
readObject(Class<T> targetClass) |
byte |
readRawByte() |
int |
readRawVarint32() |
long |
readRawVarint64() |
int |
readSFixed32() |
long |
readSFixed64() |
int |
readSInt32() |
long |
readSInt64() |
String |
readString() |
int |
readTag() |
int |
readUInt32() |
long |
readUInt64() |
boolean |
skipField(int tag) |
public DefaultProtoStreamReader(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader)
public DefaultProtoStreamReader(org.infinispan.protostream.ImmutableSerializationContext context,
protostream.com.google.protobuf.CodedInputStream input)
public org.infinispan.protostream.ImmutableSerializationContext getSerializationContext()
getSerializationContext in interface ProtoStreamReaderpublic <T> T readObject(Class<T> targetClass) throws IOException
readObject in interface ProtoStreamReaderIOExceptionpublic <E extends Enum<E>> E readEnum(Class<E> enumClass) throws IOException
readEnum in interface ProtoStreamReaderIOExceptionpublic int readTag()
throws IOException
readTag in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic void checkLastTagWas(int tag)
throws IOException
checkLastTagWas in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic boolean skipField(int tag)
throws IOException
skipField in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic boolean readBool()
throws IOException
readBool in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic int readEnum()
throws IOException
readEnum in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic byte readRawByte()
throws IOException
readRawByte in interface ProtoStreamReaderIOExceptionpublic String readString() throws IOException
readString in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic byte[] readByteArray()
throws IOException
readByteArray in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic ByteBuffer readByteBuffer() throws IOException
readByteBuffer in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic double readDouble()
throws IOException
readDouble in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic float readFloat()
throws IOException
readFloat in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic long readInt64()
throws IOException
readInt64 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic long readUInt64()
throws IOException
readUInt64 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic long readSInt64()
throws IOException
readSInt64 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic long readFixed64()
throws IOException
readFixed64 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic long readSFixed64()
throws IOException
readSFixed64 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic long readRawVarint64()
throws IOException
readRawVarint64 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic int readInt32()
throws IOException
readInt32 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic int readUInt32()
throws IOException
readUInt32 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic int readSInt32()
throws IOException
readSInt32 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic int readFixed32()
throws IOException
readFixed32 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic int readSFixed32()
throws IOException
readSFixed32 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic int readRawVarint32()
throws IOException
readRawVarint32 in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic int pushLimit(int limit)
throws IOException
pushLimit in interface org.infinispan.protostream.RawProtoStreamReaderIOExceptionpublic void popLimit(int oldLimit)
popLimit in interface org.infinispan.protostream.RawProtoStreamReaderCopyright © 2021 JBoss by Red Hat. All rights reserved.