Package org.infinispan.protostream.impl
Class TagReaderImpl
- java.lang.Object
-
- org.infinispan.protostream.impl.TagReaderImpl
-
- All Implemented Interfaces:
ProtoStreamMarshaller.OperationContext
,ProtoStreamMarshaller.ReadContext
,RawProtoStreamReader
,TagReader
public final class TagReaderImpl extends Object implements TagReader, ProtoStreamMarshaller.ReadContext
- Since:
- 3.0
- Author:
- [email protected]
-
-
Method Summary
-
-
-
Method Detail
-
newNestedInstance
public static TagReaderImpl newNestedInstance(ProtoStreamMarshaller.ReadContext parentCtx, InputStream input)
-
newNestedInstance
public static TagReaderImpl newNestedInstance(ProtoStreamMarshaller.ReadContext parentCtx, byte[] buf)
-
newInstance
public static TagReaderImpl newInstance(ImmutableSerializationContext serCtx, InputStream input)
-
newInstance
public static TagReaderImpl newInstance(ImmutableSerializationContext serCtx, byte[] buf)
-
newInstance
public static TagReaderImpl newInstance(ImmutableSerializationContext serCtx, byte[] buf, int off, int len)
-
newInstance
public static TagReaderImpl newInstance(ImmutableSerializationContext serCtx, ByteBuffer buf)
-
isAtEnd
public boolean isAtEnd() throws IOException
- Specified by:
isAtEnd
in interfaceTagReader
- Throws:
IOException
-
readTag
public int readTag() throws IOException
- Specified by:
readTag
in interfaceRawProtoStreamReader
- Specified by:
readTag
in interfaceTagReader
- Throws:
IOException
-
checkLastTagWas
public void checkLastTagWas(int tag) throws IOException
- Specified by:
checkLastTagWas
in interfaceRawProtoStreamReader
- Specified by:
checkLastTagWas
in interfaceTagReader
- Throws:
IOException
-
skipField
public boolean skipField(int tag) throws IOException
- Specified by:
skipField
in interfaceRawProtoStreamReader
- Specified by:
skipField
in interfaceTagReader
- Throws:
IOException
-
readDouble
public double readDouble() throws IOException
- Specified by:
readDouble
in interfaceRawProtoStreamReader
- Specified by:
readDouble
in interfaceTagReader
- Throws:
IOException
-
readFloat
public float readFloat() throws IOException
- Specified by:
readFloat
in interfaceRawProtoStreamReader
- Specified by:
readFloat
in interfaceTagReader
- Throws:
IOException
-
readUInt64
public long readUInt64() throws IOException
- Specified by:
readUInt64
in interfaceRawProtoStreamReader
- Specified by:
readUInt64
in interfaceTagReader
- Throws:
IOException
-
readInt64
public long readInt64() throws IOException
- Specified by:
readInt64
in interfaceRawProtoStreamReader
- Specified by:
readInt64
in interfaceTagReader
- Throws:
IOException
-
readInt32
public int readInt32() throws IOException
- Specified by:
readInt32
in interfaceRawProtoStreamReader
- Specified by:
readInt32
in interfaceTagReader
- Throws:
IOException
-
readFixed64
public long readFixed64() throws IOException
- Specified by:
readFixed64
in interfaceRawProtoStreamReader
- Specified by:
readFixed64
in interfaceTagReader
- Throws:
IOException
-
readFixed32
public int readFixed32() throws IOException
- Specified by:
readFixed32
in interfaceRawProtoStreamReader
- Specified by:
readFixed32
in interfaceTagReader
- Throws:
IOException
-
readBool
public boolean readBool() throws IOException
- Specified by:
readBool
in interfaceRawProtoStreamReader
- Specified by:
readBool
in interfaceTagReader
- Throws:
IOException
-
readString
public String readString() throws IOException
- Specified by:
readString
in interfaceRawProtoStreamReader
- Specified by:
readString
in interfaceTagReader
- Throws:
IOException
-
readByteArray
public byte[] readByteArray() throws IOException
- Specified by:
readByteArray
in interfaceRawProtoStreamReader
- Specified by:
readByteArray
in interfaceTagReader
- Throws:
IOException
-
readByteBuffer
public ByteBuffer readByteBuffer() throws IOException
- Specified by:
readByteBuffer
in interfaceRawProtoStreamReader
- Specified by:
readByteBuffer
in interfaceTagReader
- Throws:
IOException
-
readUInt32
public int readUInt32() throws IOException
- Specified by:
readUInt32
in interfaceRawProtoStreamReader
- Specified by:
readUInt32
in interfaceTagReader
- Throws:
IOException
-
readEnum
public int readEnum() throws IOException
- Specified by:
readEnum
in interfaceRawProtoStreamReader
- Specified by:
readEnum
in interfaceTagReader
- Throws:
IOException
-
readSFixed32
public int readSFixed32() throws IOException
- Specified by:
readSFixed32
in interfaceRawProtoStreamReader
- Specified by:
readSFixed32
in interfaceTagReader
- Throws:
IOException
-
readSFixed64
public long readSFixed64() throws IOException
- Specified by:
readSFixed64
in interfaceRawProtoStreamReader
- Specified by:
readSFixed64
in interfaceTagReader
- Throws:
IOException
-
readSInt32
public int readSInt32() throws IOException
- Specified by:
readSInt32
in interfaceRawProtoStreamReader
- Specified by:
readSInt32
in interfaceTagReader
- Throws:
IOException
-
readSInt64
public long readSInt64() throws IOException
- Specified by:
readSInt64
in interfaceRawProtoStreamReader
- Specified by:
readSInt64
in interfaceTagReader
- Throws:
IOException
-
readRawVarint32
public int readRawVarint32() throws IOException
- Specified by:
readRawVarint32
in interfaceRawProtoStreamReader
- Specified by:
readRawVarint32
in interfaceTagReader
- Throws:
IOException
-
readRawVarint64
public long readRawVarint64() throws IOException
- Specified by:
readRawVarint64
in interfaceRawProtoStreamReader
- Specified by:
readRawVarint64
in interfaceTagReader
- Throws:
IOException
-
pushLimit
public int pushLimit(int byteLimit) throws IOException
- Specified by:
pushLimit
in interfaceRawProtoStreamReader
- Specified by:
pushLimit
in interfaceTagReader
- Throws:
IOException
-
popLimit
public void popLimit(int oldLimit)
- Specified by:
popLimit
in interfaceRawProtoStreamReader
- Specified by:
popLimit
in interfaceTagReader
-
getSerializationContext
public SerializationContextImpl getSerializationContext()
Description copied from interface:ProtoStreamMarshaller.OperationContext
Provides access to theImmutableSerializationContext
.- Specified by:
getSerializationContext
in interfaceProtoStreamMarshaller.OperationContext
-
getParamValue
public Object getParamValue(Object key)
- Specified by:
getParamValue
in interfaceProtoStreamMarshaller.OperationContext
-
setParamValue
public void setParamValue(Object key, Object value)
- Specified by:
setParamValue
in interfaceProtoStreamMarshaller.OperationContext
-
getIn
public TagReader getIn()
- Specified by:
getIn
in interfaceProtoStreamMarshaller.ReadContext
-
getReader
@Deprecated public org.infinispan.protostream.impl.ProtoStreamReaderImpl getReader()
Deprecated.this will be removed in 5.0 together withMessageMarshaller
- Specified by:
getReader
in interfaceProtoStreamMarshaller.ReadContext
-
-