|
Directory SDK for Java 4.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetscape.ldap.ber.stream.BERElement
This class is for the tagged object type. A nested tag is allowed. A tagged element contains another BER element.
| Field Summary | |
static int |
ANY
|
static int |
APPLICATION
|
static int |
BITSTRING
|
static int |
BOOLEAN
Possible element types. |
static int |
CHOICE
|
static int |
CONSTRUCTED
|
static int |
CONTEXT
|
static int |
ENUMERATED
|
static int |
EOC
Possible tags. |
static int |
EXOP_REQ_OID
|
static int |
EXOP_REQ_VALUE
|
static int |
EXOP_RES_OID
|
static int |
EXOP_RES_VALUE
|
static int |
GENERALSTRING
|
static int |
GRAPHICSTRING
|
static int |
IA5STRING
|
static int |
INTEGER
|
static int |
MRA_DNATTRS
|
static int |
MRA_OID
|
static int |
MRA_TYPE
|
static int |
MRA_VALUE
|
static int |
NULL
|
static int |
NUMERICSTRING
|
static int |
OBJECTID
|
static int |
OCTETSTRING
|
static int |
PRIMITIVE
|
static int |
PRINTABLESTRING
|
static int |
PRIVATE
|
static int |
REAL
|
static int |
SASLCONTEXT
|
static int |
SEQUENCE
|
static int |
SET
|
static int |
SK_MATCHRULE
|
static int |
SK_REVERSE
|
static int |
SR_ATTRTYPE
|
static int |
TAG
Internal (non-transmitted) tags. |
static int |
TELETEXSTRING
|
static int |
UNIVERSAL
|
static int |
UTCTIME
|
static int |
VIDEOTEXSTRING
|
static int |
VISIBLESTRING
|
| Constructor Summary | |
BERElement()
|
|
| Method Summary | |
String |
byteToHexString(byte value)
Converts byte to hex string. |
static BERElement |
getElement(BERTagDecoder decoder,
InputStream stream,
int[] bytes_read)
Gets a ber element from the input stream. |
abstract int |
getType()
Gets the element type. |
static int |
readLengthOctets(InputStream stream,
int[] bytes_read)
Reads and decodes a length byte and then that many octets from the input stream. |
static void |
sendDefiniteLength(OutputStream stream,
int num_content_octets)
Writes length octets (definite length only) to stream. |
abstract String |
toString()
Gets the string representation. |
abstract void |
write(OutputStream stream)
Sends the BER encoding directly to a stream. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int BOOLEAN
public static final int INTEGER
public static final int BITSTRING
public static final int OCTETSTRING
public static final int NULL
public static final int OBJECTID
public static final int REAL
public static final int ENUMERATED
public static final int SET
public static final int SEQUENCE
public static final int NUMERICSTRING
public static final int PRINTABLESTRING
public static final int TELETEXSTRING
public static final int VIDEOTEXSTRING
public static final int IA5STRING
public static final int UTCTIME
public static final int GRAPHICSTRING
public static final int VISIBLESTRING
public static final int GENERALSTRING
public static final int TAG
public static final int CHOICE
public static final int ANY
public static final int EOC
public static final int UNIVERSAL
public static final int APPLICATION
public static final int CONTEXT
public static final int SASLCONTEXT
public static final int PRIVATE
public static final int PRIMITIVE
public static final int CONSTRUCTED
public static final int MRA_OID
public static final int MRA_TYPE
public static final int MRA_VALUE
public static final int MRA_DNATTRS
public static final int EXOP_REQ_OID
public static final int EXOP_REQ_VALUE
public static final int EXOP_RES_OID
public static final int EXOP_RES_VALUE
public static final int SK_MATCHRULE
public static final int SK_REVERSE
public static final int SR_ATTRTYPE
| Constructor Detail |
public BERElement()
| Method Detail |
public static BERElement getElement(BERTagDecoder decoder,
InputStream stream,
int[] bytes_read)
throws IOException
decoder - decoder for application specific BERstream - source of ber encodingbytes_read - array of 1 int; value incremented by
number of bytes read from stream
IOException - failed to decode an element.
public static int readLengthOctets(InputStream stream,
int[] bytes_read)
throws IOException
stream - input stream from which to readbytes_read - array of 1 int; value incremented by
number of bytes read from stream
IOException - failed to read octets
public static void sendDefiniteLength(OutputStream stream,
int num_content_octets)
throws IOException
stream - output stream to write tonum_content_octets - value to be encode into length octets
IOException - failed to read octetspublic String byteToHexString(byte value)
value - byte value
public abstract void write(OutputStream stream)
throws IOException
stream - output stream
IOExceptionpublic abstract int getType()
public abstract String toString()
|
Directory SDK for Java 4.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||