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
BERExceptionpublic boolean available()
public void skip()
public boolean parseBoolean()
throws BERException
BERExceptionpublic int parseInt()
throws BERException
BERExceptionpublic java.lang.String parseString()
throws BERException
BERExceptionpublic byte[] parseOctetString()
throws BERException
BERExceptionpublic BERDecoder parseSequence() throws BERException
BERExceptionpublic BERDecoder parseSequence(int code) throws BERException
BERExceptionpublic BERDecoder parseSet() throws BERException
BERExceptionpublic BERDecoder parseSet(int code) throws BERException
BERExceptionpublic static void main(java.lang.String[] args)