tuweni / org.apache.tuweni.rlp / RLPReader / readString

readString

open fun readString(): String! (source)

Read a string value from the RLP source.

Exceptions

InvalidRLPEncodingException - If there is an error decoding the RLP source.

InvalidRLPTypeException - If the next RLP value cannot be represented as a string.

EndOfRLPException - If there are no more RLP values to read.

Return
String!: A string.

open fun readString(lenient: Boolean): String! (source)

Read a string value from the RLP source.

Parameters

lenient - Boolean: If false, an exception will be thrown if the integer is not minimally encoded.

Exceptions

InvalidRLPEncodingException - If there is an error decoding the RLP source.

InvalidRLPTypeException - If the next RLP value cannot be represented as a string.

EndOfRLPException - If there are no more RLP values to read.

Return
String!: A string.