Package org.infinispan.protostream.impl
Class RawProtoStreamReaderImpl
- java.lang.Object
-
- org.infinispan.protostream.impl.RawProtoStreamReaderImpl
-
- All Implemented Interfaces:
RawProtoStreamReader
public final class RawProtoStreamReaderImpl extends Object implements RawProtoStreamReader
- Since:
- 3.0
- Author:
- [email protected]
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkLastTagWas(int tag)
com.google.protobuf.CodedInputStream
getDelegate()
static RawProtoStreamReader
newInstance(byte[] buf)
static RawProtoStreamReader
newInstance(byte[] buf, int off, int len)
static RawProtoStreamReader
newInstance(InputStream input)
static RawProtoStreamReader
newInstance(ByteBuffer buf)
void
popLimit(int oldLimit)
int
pushLimit(int byteLimit)
boolean
readBool()
byte[]
readByteArray()
ByteBuffer
readByteBuffer()
double
readDouble()
int
readEnum()
int
readFixed32()
long
readFixed64()
float
readFloat()
int
readInt32()
long
readInt64()
int
readRawVarint32()
long
readRawVarint64()
int
readSFixed32()
long
readSFixed64()
int
readSInt32()
long
readSInt64()
String
readString()
int
readTag()
int
readUInt32()
long
readUInt64()
boolean
skipField(int tag)
-
-
-
Method Detail
-
newInstance
public static RawProtoStreamReader newInstance(InputStream input)
-
newInstance
public static RawProtoStreamReader newInstance(byte[] buf)
-
newInstance
public static RawProtoStreamReader newInstance(byte[] buf, int off, int len)
-
newInstance
public static RawProtoStreamReader newInstance(ByteBuffer buf)
-
getDelegate
public com.google.protobuf.CodedInputStream getDelegate()
-
readTag
public int readTag() throws IOException
- Specified by:
readTag
in interfaceRawProtoStreamReader
- Throws:
IOException
-
checkLastTagWas
public void checkLastTagWas(int tag) throws IOException
- Specified by:
checkLastTagWas
in interfaceRawProtoStreamReader
- Throws:
IOException
-
skipField
public boolean skipField(int tag) throws IOException
- Specified by:
skipField
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readDouble
public double readDouble() throws IOException
- Specified by:
readDouble
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readFloat
public float readFloat() throws IOException
- Specified by:
readFloat
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readUInt64
public long readUInt64() throws IOException
- Specified by:
readUInt64
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readInt64
public long readInt64() throws IOException
- Specified by:
readInt64
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readInt32
public int readInt32() throws IOException
- Specified by:
readInt32
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readFixed64
public long readFixed64() throws IOException
- Specified by:
readFixed64
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readFixed32
public int readFixed32() throws IOException
- Specified by:
readFixed32
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readBool
public boolean readBool() throws IOException
- Specified by:
readBool
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readString
public String readString() throws IOException
- Specified by:
readString
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readByteArray
public byte[] readByteArray() throws IOException
- Specified by:
readByteArray
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readByteBuffer
public ByteBuffer readByteBuffer() throws IOException
- Specified by:
readByteBuffer
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readUInt32
public int readUInt32() throws IOException
- Specified by:
readUInt32
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readEnum
public int readEnum() throws IOException
- Specified by:
readEnum
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readSFixed32
public int readSFixed32() throws IOException
- Specified by:
readSFixed32
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readSFixed64
public long readSFixed64() throws IOException
- Specified by:
readSFixed64
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readSInt32
public int readSInt32() throws IOException
- Specified by:
readSInt32
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readSInt64
public long readSInt64() throws IOException
- Specified by:
readSInt64
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readRawVarint32
public int readRawVarint32() throws IOException
- Specified by:
readRawVarint32
in interfaceRawProtoStreamReader
- Throws:
IOException
-
readRawVarint64
public long readRawVarint64() throws IOException
- Specified by:
readRawVarint64
in interfaceRawProtoStreamReader
- Throws:
IOException
-
pushLimit
public int pushLimit(int byteLimit) throws IOException
- Specified by:
pushLimit
in interfaceRawProtoStreamReader
- Throws:
IOException
-
popLimit
public void popLimit(int oldLimit)
- Specified by:
popLimit
in interfaceRawProtoStreamReader
-
-