netscape.ldap.ber.stream
Class BERCharacterString
- Serializable
public abstract class BERCharacterString
This is an abstract base class for character string types.
protected String | m_value- Internal variables
|
ANY, APPLICATION, BITSTRING, BOOLEAN, CHOICE, CONSTRUCTED, CONTEXT, ENUMERATED, EOC, EXOP_REQ_OID, EXOP_REQ_VALUE, EXOP_RES_OID, EXOP_RES_VALUE, GENERALSTRING, GRAPHICSTRING, IA5STRING, INTEGER, MRA_DNATTRS, MRA_OID, MRA_TYPE, MRA_VALUE, NULL, NUMERICSTRING, OBJECTID, OCTETSTRING, PRIMITIVE, PRINTABLESTRING, PRIVATE, REAL, SASLCONTEXT, SEQUENCE, SET, SK_MATCHRULE, SK_REVERSE, SR_ATTRTYPE, TAG, TELETEXSTRING, UNIVERSAL, UTCTIME, VIDEOTEXSTRING, VISIBLESTRING |
BERCharacterString()- Constructs a character string element containing a buffer.
|
BERCharacterString(InputStream stream, int[] bytes_read)- Constructs a character string element from an input stream
(for primitive encoding)
|
BERCharacterString(String string)- Constructs a character string element containing buffer.
|
BERCharacterString(byte[] buffer)- Constructs a character string element from a byte array.
|
BERCharacterString(BERTagDecoder decoder, InputStream stream, int[] bytes_read)- Constructs a character string element from an input stream
(for constructed encoding)
|
abstract int | getType()- Gets the element type.
|
String | getValue()- Gets the element value.
|
abstract String | toString()- Gets the string representation.
|
void | write(OutputStream stream)- Writes BER to stream.
|
m_value
protected String m_value
Internal variables
BERCharacterString
public BERCharacterString()
Constructs a character string element containing a buffer.
BERCharacterString
public BERCharacterString(InputStream stream,
int[] bytes_read)
throws IOException Constructs a character string element from an input stream
(for primitive encoding)
stream - sourcebytes_read - array of 1 int, incremented by number of bytes read
BERCharacterString
public BERCharacterString(String string)
Constructs a character string element containing buffer.
BERCharacterString
public BERCharacterString(byte[] buffer)
Constructs a character string element from a byte array.
buffer - buffer containing UTF8 data
BERCharacterString
public BERCharacterString(BERTagDecoder decoder,
InputStream stream,
int[] bytes_read)
throws IOException Constructs a character string element from an input stream
(for constructed encoding)
stream - input streambytes_read - array of 1 int, incremented by number of bytes read
getType
public abstract int getType()
Gets the element type.
- getType in interface BERElement
getValue
public String getValue()
Gets the element value.
toString
public abstract String toString()
Gets the string representation.
- toString in interface BERElement
write
public void write(OutputStream stream)
throws IOException Writes BER to stream.
- write in interface BERElement