java.lang.Object | ||
↳ | com.sun.jndi.ldap.Ber | |
↳ | com.sun.jndi.ldap.BerDecoder |
A BER decoder. Contains methods to parse a BER buffer.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a BER decoder that reads bytes from the specified buffer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the number of unparsed bytes in this BER buffer.
| |||||||||||
Returns the current parse position.
| |||||||||||
Parses an ASN_BOOLEAN tagged integer from this BER buffer.
| |||||||||||
Parses the next byte in this BER buffer.
| |||||||||||
Parses an ASN_ENUMERATED tagged integer from this BER buffer.
| |||||||||||
Parses an ASN_INTEGER tagged integer from this BER buffer.
| |||||||||||
Parses a possibly variable length field.
| |||||||||||
Parses an octet string of a given type(tag) from this BER buffer.
| |||||||||||
Parses the next sequence in this BER buffer.
| |||||||||||
Parses a string.
| |||||||||||
Parses a string of a given tag from this BER buffer.
| |||||||||||
Returns the next byte in this BER buffer without consuming it.
| |||||||||||
Resets this decode to start parsing from the initial offset
(ie., same state as after calling the constructor).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a BER decoder that reads bytes from the specified buffer.
Returns the number of unparsed bytes in this BER buffer.
Returns the current parse position. It points to the byte that will be parsed next. Useful for parsing sequences.
Parses an ASN_BOOLEAN tagged integer from this BER buffer.
Ber.DecodeException |
---|
Parses the next byte in this BER buffer.
Ber.DecodeException |
---|
Parses an ASN_ENUMERATED tagged integer from this BER buffer.
Ber.DecodeException |
---|
Parses an ASN_INTEGER tagged integer from this BER buffer.
Ber.DecodeException |
---|
Parses a possibly variable length field.
Ber.DecodeException |
---|
Parses an octet string of a given type(tag) from this BER buffer.
BER Binary Data of type "tag" ::= tag length {byte}*
tag | The tag to look for. |
---|---|
rlen | An array for returning the relative parsed position. If null, the relative parsed position is not returned. |
If the next byte in the BER buffer is not tag, or if length specified in the BER buffer exceeds the number of bytes left in the buffer. | |
Ber.DecodeException |
Parses the next sequence in this BER buffer.
rlen | An array for returning size of the sequence in bytes. If null, the size is not returned. |
---|
Ber.DecodeException |
---|
Parses a string of a given tag from this BER buffer.
BER simple string ::= tag length {byte}*
tag | The tag that precedes the string. |
---|---|
decodeUTF8 | If true, use UTF-8 when decoding the string; otherwise use ISO-Latin-1 (8859_1). Use true for LDAPv3; false for LDAPv2. |
rlen | An array for holding the relative parsed offset; if null offset not set. |
Ber.DecodeException |
---|
Returns the next byte in this BER buffer without consuming it.
Ber.DecodeException |
---|
Resets this decode to start parsing from the initial offset (ie., same state as after calling the constructor).