java.lang.Object | ||
↳ | com.sun.jndi.ldap.Ber | |
↳ | com.sun.jndi.ldap.BerEncoder |
A BER encoder.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a BER buffer for encoding.
| |||||||||||
Creates a BER buffer of a specified size for encoding.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Begin encoding a sequence with a tag.
| |||||||||||
Encodes a boolean.
| |||||||||||
Encodes a boolean and a tag
BER boolean w TAG ::= tag 0x01 {0xff|0x00} | |||||||||||
Encode a single byte.
| |||||||||||
Encodes an int and a tag.
| |||||||||||
Encodes an octet string and a tag.
| |||||||||||
Encodes a portion of an octet string and a tag.
| |||||||||||
Encodes a string and a tag.
| |||||||||||
Encodes a string.
| |||||||||||
Encodes an array of strings.
| |||||||||||
Terminate a BER sequence.
| |||||||||||
Gets the buffer that contains the BER encoding.
| |||||||||||
Gets the number of encoded bytes in this BER buffer.
| |||||||||||
Gets the buffer that contains the BER encoding, trimming unused bytes.
| |||||||||||
Resets encoder to state when newly constructed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a BER buffer for encoding.
Creates a BER buffer of a specified size for encoding. Specify the initial bufsize. Buffer will be expanded as needed.
bufsize | The number of bytes for the buffer. |
---|
Begin encoding a sequence with a tag.
Encodes a boolean.
BER boolean ::= 0x01 0x01 {0xff|0x00}
Encodes a boolean and a tag
BER boolean w TAG ::= tag 0x01 {0xff|0x00}
Encode a single byte.
Encodes an int and a tag.
BER integer w tag ::= tag berlength byte {byte}*
Encodes an octet string and a tag.
Ber.EncodeException |
---|
Encodes a portion of an octet string and a tag.
Ber.EncodeException |
---|
Encodes a string and a tag.
BER string w TAG ::= tag strlen byte1 byte2...
Ber.EncodeException |
---|
Encodes a string.
The string is converted into bytes using UTF-8 or ISO-Latin-1.BER string ::= 0x04 strlen byte1 byte2...
Ber.EncodeException |
---|
Encodes an array of strings.
Ber.EncodeException |
---|
Terminate a BER sequence.
Ber.EncodeException |
---|
Gets the buffer that contains the BER encoding. Throws an exception if unmatched beginSeq() and endSeq() pairs were encountered. Not entire buffer contains encoded bytes. Use getDataLen() to determine number of encoded bytes. Use getBuffer(true) to get rid of excess bytes in array.
IllegalStateException | If buffer contains unbalanced sequence. |
---|
Gets the number of encoded bytes in this BER buffer.
Gets the buffer that contains the BER encoding, trimming unused bytes.
IllegalStateException | If buffer contains unbalanced sequence. |
---|
Resets encoder to state when newly constructed. Zeros out internal data structures.