gnu.inet.ldap
Class BERDecoder
public class BERDecoder
extends java.lang.Object
Utility class for decoding BER values.
For each value to be read, the application must call 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.
BERDecoder
public BERDecoder(byte[] data,
boolean utf8)
available
public boolean available()
main
public static void main(String[] args)
parseBoolean
public boolean parseBoolean()
throws BERException
parseOctetString
public byte[] parseOctetString()
throws BERException
parseType
public int parseType()
throws BERException
Returns the type of the current value record.
If there are no more records to read, this method returns -1.