public final class RLPDecoder
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
boolean |
lenient |
static RLPDecoder |
RLP_LENIENT |
static RLPDecoder |
RLP_STRICT |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
collect(int index,
byte[] encodings,
java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> predicate,
java.util.Collection<RLPItem> collection) |
java.util.List<RLPItem> |
collectAll(byte[] encodings) |
java.util.List<RLPItem> |
collectAll(int index,
byte[] encodings) |
int |
collectAll(int index,
byte[] encodings,
java.util.Collection<RLPItem> dest) |
java.util.List<RLPItem> |
collectBefore(byte[] encodings,
int endIndex) |
java.util.List<RLPItem> |
collectBefore(int index,
byte[] encodings,
int endIndex) |
int |
collectBefore(int index,
byte[] encodings,
int endIndex,
java.util.Collection<RLPItem> dest) |
java.util.List<RLPItem> |
collectN(byte[] encodings,
int n) |
void |
collectN(byte[] encodings,
int index,
int n,
java.util.Collection<RLPItem> dest) |
java.util.List<RLPItem> |
collectN(int index,
byte[] encodings,
int n) |
RLPListIterator |
listIterator(byte[] buffer) |
RLPListIterator |
listIterator(byte[] buffer,
int index)
Returns an iterator over the elements in the RLP list item at
index. |
RLPIterator |
sequenceIterator(byte[] buffer) |
RLPIterator |
sequenceIterator(byte[] buffer,
int index)
Returns an iterator over the sequence of RLP items starting at
index. |
RLPStreamIterator |
sequenceStreamIterator(java.io.InputStream rlpStream)
Returns an iterator over a stream of RLP items.
|
RLPItem |
wrap(byte lengthOneRLP)
Returns an
RLPItem for a length-one encoding (e.g. 0xc0) |
RLPItem |
wrap(byte[] encoding) |
RLPItem |
wrap(byte[] buffer,
int index) |
RLPList |
wrapList(byte lengthOneRlp) |
RLPList |
wrapList(byte[] encoding) |
RLPList |
wrapList(byte[] buffer,
int index) |
RLPString |
wrapString(byte lengthOneRlp) |
RLPString |
wrapString(byte[] encoding) |
RLPString |
wrapString(byte[] buffer,
int index) |
public static final RLPDecoder RLP_STRICT
public static final RLPDecoder RLP_LENIENT
public final boolean lenient
public RLPStreamIterator sequenceStreamIterator(java.io.InputStream rlpStream)
rlpStream - the stream of RLP itemspublic RLPIterator sequenceIterator(byte[] buffer)
public RLPIterator sequenceIterator(byte[] buffer, int index)
index.buffer - the array containing the sequenceindex - the index of the sequencepublic RLPListIterator listIterator(byte[] buffer) throws DecodeException
DecodeExceptionpublic RLPListIterator listIterator(byte[] buffer, int index) throws DecodeException
index.buffer - the array containing the list itemindex - the index of the RLP list itemDecodeException - if the RLP list failed to decodepublic RLPString wrapString(byte lengthOneRlp) throws DecodeException
DecodeExceptionpublic RLPString wrapString(byte[] encoding) throws DecodeException
DecodeExceptionpublic RLPString wrapString(byte[] buffer, int index) throws DecodeException
DecodeExceptionpublic RLPList wrapList(byte lengthOneRlp) throws DecodeException
DecodeExceptionpublic RLPList wrapList(byte[] encoding) throws DecodeException
DecodeExceptionpublic RLPList wrapList(byte[] buffer, int index) throws DecodeException
DecodeExceptionpublic RLPItem wrap(byte lengthOneRLP) throws DecodeException
RLPItem for a length-one encoding (e.g. 0xc0)lengthOneRLP - the encodingDecodeException - if the byte fails to decodepublic RLPItem wrap(byte[] encoding) throws DecodeException
DecodeExceptionpublic RLPItem wrap(byte[] buffer, int index) throws DecodeException
DecodeExceptionpublic java.util.List<RLPItem> collectAll(byte[] encodings) throws DecodeException
DecodeExceptionpublic java.util.List<RLPItem> collectAll(int index, byte[] encodings) throws DecodeException
DecodeExceptionpublic java.util.List<RLPItem> collectBefore(byte[] encodings, int endIndex) throws DecodeException
DecodeExceptionpublic java.util.List<RLPItem> collectBefore(int index, byte[] encodings, int endIndex) throws DecodeException
DecodeExceptionpublic java.util.List<RLPItem> collectN(byte[] encodings, int n) throws DecodeException
DecodeExceptionpublic java.util.List<RLPItem> collectN(int index, byte[] encodings, int n) throws DecodeException
DecodeExceptionpublic int collectAll(int index,
byte[] encodings,
java.util.Collection<RLPItem> dest)
throws DecodeException
DecodeExceptionpublic int collectBefore(int index,
byte[] encodings,
int endIndex,
java.util.Collection<RLPItem> dest)
throws DecodeException
DecodeExceptionpublic void collectN(byte[] encodings,
int index,
int n,
java.util.Collection<RLPItem> dest)
throws DecodeException
DecodeExceptionpublic int collect(int index,
byte[] encodings,
java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> predicate,
java.util.Collection<RLPItem> collection)
throws DecodeException
DecodeException