Package foundation.icon.ee.io
Class AbstractRLPDataReader
- java.lang.Object
-
- foundation.icon.ee.io.AbstractRLPDataReader
-
- All Implemented Interfaces:
DataReader
- Direct Known Subclasses:
RLPDataReader
,RLPNDataReader
public abstract class AbstractRLPDataReader extends java.lang.Object implements DataReader
-
-
Constructor Summary
Constructors Constructor Description AbstractRLPDataReader(byte[] data)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
getTotalReadBytes()
boolean
hasNext()
protected abstract java.math.BigInteger
peekBigInteger(byte[] ba, int offset, int len)
protected abstract int
peekNull(byte[] ba, int offset, int len, boolean forRead)
java.math.BigInteger
readBigInteger()
boolean
readBoolean()
byte
readByte()
byte[]
readByteArray()
char
readChar()
double
readDouble()
float
readFloat()
void
readFooter()
int
readInt()
void
readListHeader()
long
readLong()
void
readMapHeader()
boolean
readNullity()
short
readShort()
java.lang.String
readString()
void
skip(int count)
-
-
-
Method Detail
-
peekNull
protected abstract int peekNull(byte[] ba, int offset, int len, boolean forRead)
-
peekBigInteger
protected abstract java.math.BigInteger peekBigInteger(byte[] ba, int offset, int len)
-
readBoolean
public boolean readBoolean()
- Specified by:
readBoolean
in interfaceDataReader
-
readByte
public byte readByte()
- Specified by:
readByte
in interfaceDataReader
-
readShort
public short readShort()
- Specified by:
readShort
in interfaceDataReader
-
readChar
public char readChar()
- Specified by:
readChar
in interfaceDataReader
-
readInt
public int readInt()
- Specified by:
readInt
in interfaceDataReader
-
readFloat
public float readFloat()
- Specified by:
readFloat
in interfaceDataReader
-
readLong
public long readLong()
- Specified by:
readLong
in interfaceDataReader
-
readDouble
public double readDouble()
- Specified by:
readDouble
in interfaceDataReader
-
readBigInteger
public java.math.BigInteger readBigInteger()
- Specified by:
readBigInteger
in interfaceDataReader
-
readString
public java.lang.String readString()
- Specified by:
readString
in interfaceDataReader
-
readByteArray
public byte[] readByteArray()
- Specified by:
readByteArray
in interfaceDataReader
-
readNullity
public boolean readNullity()
- Specified by:
readNullity
in interfaceDataReader
-
skip
public void skip(int count)
- Specified by:
skip
in interfaceDataReader
-
readListHeader
public void readListHeader()
- Specified by:
readListHeader
in interfaceDataReader
-
readMapHeader
public void readMapHeader()
- Specified by:
readMapHeader
in interfaceDataReader
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceDataReader
-
readFooter
public void readFooter()
- Specified by:
readFooter
in interfaceDataReader
-
getTotalReadBytes
public long getTotalReadBytes()
- Specified by:
getTotalReadBytes
in interfaceDataReader
-
-