public class BERDecoder
extends java.lang.Object
parseType
to return the type of the value, then the specific
parseXXX
method for the type to return the actual
value, or skip
to skip the value.Constructor and Description |
---|
BERDecoder(byte[] data,
boolean utf8) |
Modifier and Type | Method and Description |
---|---|
boolean |
available() |
static void |
main(java.lang.String[] args) |
boolean |
parseBoolean() |
int |
parseInt() |
byte[] |
parseOctetString() |
BERDecoder |
parseSequence() |
BERDecoder |
parseSequence(int code) |
BERDecoder |
parseSet() |
BERDecoder |
parseSet(int code) |
java.lang.String |
parseString() |
int |
parseType()
Returns the type of the current value record.
|
void |
skip() |
public int parseType() throws BERException
BERException
public boolean available()
public void skip()
public boolean parseBoolean() throws BERException
BERException
public int parseInt() throws BERException
BERException
public java.lang.String parseString() throws BERException
BERException
public byte[] parseOctetString() throws BERException
BERException
public BERDecoder parseSequence() throws BERException
BERException
public BERDecoder parseSequence(int code) throws BERException
BERException
public BERDecoder parseSet() throws BERException
BERException
public BERDecoder parseSet(int code) throws BERException
BERException
public static void main(java.lang.String[] args)