- java.lang.Object
-
- org.redkale.convert.Reader
-
- org.redkale.convert.pb.ProtobufReader
-
- org.redkale.convert.pb.ProtobufByteBufferReader
-
public class ProtobufByteBufferReader extends ProtobufReader
- 作者:
- zhangjx
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.redkale.convert.Reader
Reader.ValueType
-
-
字段概要
-
从类继承的字段 org.redkale.convert.pb.ProtobufReader
cacheTag, limit, LIS_CREATOR, position
-
从类继承的字段 org.redkale.convert.Reader
SIGN_NULL, SIGN_VARIABLE
-
-
构造器概要
构造器 限定符 构造器 说明 protectedProtobufByteBufferReader()protectedProtobufByteBufferReader(ByteBuffer... buffers)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanhasNext()是否还存在下个元素或字段protected bytenextByte()protected byte[]nextBytes(int size)booleanreadBoolean()读取一个boolean值byte[]readByteArray()读取byte[]protected intreadRawLittleEndian32()protected longreadRawLittleEndian64()protected intreadRawVarint32()protected longreadRawVarint64()protected longreadRawVarint64SlowPath()StringreadString()读取一个String值protected booleanrecycle()byte[]remainBytes()-
从类继承的方法 org.redkale.convert.pb.ProtobufReader
backTag, clear, limit, limit, position, prepare, readArrayB, readArrayE, readBlank, readBools, readBools, readByte, readBytes, readBytes, readChar, readChars, readChars, readDouble, readDoubles, readDoubles, readField, readFloat, readFloats, readFloats, readInt, readInts, readInts, readLong, readLongs, readLongs, readMapB, readMapE, readNextTag, readNextTag, readObjectB, readObjectE, readShort, readShorts, readShorts, readStandardString, readStrings, readStrings, readTag, readType, setBytes, setBytes, skipValue
-
-
-
-
构造器详细资料
-
ProtobufByteBufferReader
protected ProtobufByteBufferReader()
-
ProtobufByteBufferReader
protected ProtobufByteBufferReader(ByteBuffer... buffers)
-
-
方法详细资料
-
recycle
protected boolean recycle()
- 覆盖:
recycle在类中ProtobufReader
-
nextByte
protected byte nextByte()
-
nextBytes
protected byte[] nextBytes(int size)
-
remainBytes
public byte[] remainBytes()
- 覆盖:
remainBytes在类中ProtobufReader
-
hasNext
public boolean hasNext()
从类复制的说明:Reader是否还存在下个元素或字段- 覆盖:
hasNext在类中ProtobufReader- 返回:
- 是否还存在下个元素或字段
-
readBoolean
public final boolean readBoolean()
从类复制的说明:Reader读取一个boolean值- 覆盖:
readBoolean在类中ProtobufReader- 返回:
- boolean值
-
readString
public final String readString()
从类复制的说明:Reader读取一个String值- 覆盖:
readString在类中ProtobufReader- 返回:
- String值
-
readByteArray
public final byte[] readByteArray()
从类复制的说明:Reader读取byte[]- 覆盖:
readByteArray在类中ProtobufReader- 返回:
- byte[]
-
readRawVarint32
protected final int readRawVarint32()
- 覆盖:
readRawVarint32在类中ProtobufReader
-
readRawVarint64
protected final long readRawVarint64()
- 覆盖:
readRawVarint64在类中ProtobufReader
-
readRawVarint64SlowPath
protected final long readRawVarint64SlowPath()
-
readRawLittleEndian32
protected final int readRawLittleEndian32()
- 覆盖:
readRawLittleEndian32在类中ProtobufReader
-
readRawLittleEndian64
protected final long readRawLittleEndian64()
- 覆盖:
readRawLittleEndian64在类中ProtobufReader
-
-