Package org.infinispan.protostream.impl
Class TagReaderImpl.DecoderImpl
- java.lang.Object
-
- org.infinispan.protostream.impl.TagReaderImpl.DecoderImpl
-
- All Implemented Interfaces:
Decoder
- Enclosing class:
- TagReaderImpl
public abstract static class TagReaderImpl.DecoderImpl extends Object implements Decoder
-
-
Field Summary
Fields Modifier and Type Field Description protected int
globalLimit
protected int
lastTag
-
Constructor Summary
Constructors Constructor Description DecoderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkLastTagWas(int expectedTag)
int
readTag()
int
readVarint32()
Reads a Varint (possibly 64 bits wide) and silently discards the upper bits if larger than 32 bits.boolean
skipField(int tag)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.protostream.Decoder
decoderFromLength, getBufferArray, getEnd, getPos, isAtEnd, popLimit, pushLimit, readFixed32, readFixed64, readRawByte, readRawByteArray, readRawByteBuffer, readString, readVarint64, setGlobalLimit, skipRawBytes, skipVarint
-
-
-
-
Method Detail
-
readTag
public final int readTag() throws IOException
- Specified by:
readTag
in interfaceDecoder
- Throws:
IOException
-
checkLastTagWas
public final void checkLastTagWas(int expectedTag) throws IOException
- Specified by:
checkLastTagWas
in interfaceDecoder
- Throws:
IOException
-
skipField
public final boolean skipField(int tag) throws IOException
- Specified by:
skipField
in interfaceDecoder
- Throws:
IOException
-
readVarint32
public final int readVarint32() throws IOException
Reads a Varint (possibly 64 bits wide) and silently discards the upper bits if larger than 32 bits.- Specified by:
readVarint32
in interfaceDecoder
- Throws:
IOException
-
-