|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netscape.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 | |
java.lang.String |
byteToHexString(byte value)
Converts byte to hex string. |
static BERElement |
getElement(BERTagDecoder decoder,
java.io.InputStream stream,
int[] bytes_read)
Gets a ber element from the input stream. |
abstract int |
getType()
Gets the element type. |
static int |
readLengthOctets(java.io.InputStream stream,
int[] bytes_read)
Reads and decodes a length byte and then that many octets from the input stream. |
protected int |
readTwosComplement(java.io.InputStream stream,
int[] bytes_read,
int length)
Reads the two's complement representation of an integer from an input stream. |
protected int |
readUnsignedBinary(java.io.InputStream stream,
int[] bytes_read,
int length)
Reads a number of bytes from an input stream and form an integer.. |
static void |
sendDefiniteLength(java.io.OutputStream stream,
int num_content_octets)
Writes length octets (definite length only) to stream. |
abstract java.lang.String |
toString()
Gets the string representation. |
abstract void |
write(java.io.OutputStream stream)
Sends the BER encoding directly to a stream. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
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, java.io.InputStream stream, int[] bytes_read) throws java.io.IOException
decoder
- decoder for application specific BERstream
- source of ber encodingbytes_read
- array of 1 int; value incremented by
number of bytes read from streampublic static int readLengthOctets(java.io.InputStream stream, int[] bytes_read) throws java.io.IOException
stream
- input stream from which to readbytes_read
- array of 1 int; value incremented by
number of bytes read from streampublic static void sendDefiniteLength(java.io.OutputStream stream, int num_content_octets) throws java.io.IOException
stream
- output stream to write tonum_content_octets
- value to be encode into length octetsprotected int readUnsignedBinary(java.io.InputStream stream, int[] bytes_read, int length) throws java.io.IOException
stream
- source of databytes_read
- number of bytes readlength
- number of bytes to be read (1 to 4)protected int readTwosComplement(java.io.InputStream stream, int[] bytes_read, int length) throws java.io.IOException
stream
- source of databytes_read
- number of bytes readlength
- number of bytes to be readpublic java.lang.String byteToHexString(byte value)
value
- byte valuepublic abstract void write(java.io.OutputStream stream) throws java.io.IOException
stream
- output streampublic abstract int getType()
public abstract java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |