|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.asn1.ASN1Object
com.novell.ldap.asn1.ASN1OctetString
public class ASN1OctetString
This class encapsulates the OCTET STRING type.
Field Summary | |
---|---|
private byte[] |
content
|
protected static ASN1Identifier |
ID
ID is added for Optimization. |
static int |
TAG
ASN.1 OCTET STRING tag definition. |
Constructor Summary | |
---|---|
ASN1OctetString(ASN1Decoder dec,
java.io.InputStream in,
int len)
Constructs an ASN1OctetString object by decoding data from an input stream. |
|
ASN1OctetString(byte[] content)
Call this constructor to construct an ASN1OctetString object from a byte array. |
|
ASN1OctetString(java.lang.String content)
Call this constructor to construct an ASN1OctetString object from a String object. |
Method Summary | |
---|---|
byte[] |
byteValue()
Returns the content of this ASN1OctetString as a byte array. |
void |
encode(ASN1Encoder enc,
java.io.OutputStream out)
Call this method to encode the current instance into the specified output stream using the specified encoder object. |
java.lang.String |
stringValue()
Returns the content of this ASN1OctetString as a String. |
java.lang.String |
toString()
Return a String representation of this ASN1Object. |
Methods inherited from class com.novell.ldap.asn1.ASN1Object |
---|
getEncoding, getIdentifier, setIdentifier |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private byte[] content
public static final int TAG
protected static final ASN1Identifier ID
Id needs only be one Value for every instance, thus we create it only once.
Constructor Detail |
---|
public ASN1OctetString(byte[] content)
content
- A byte array representing the string that
will be contained in the this ASN1OctetString objectpublic ASN1OctetString(java.lang.String content)
content
- A string value that will be contained
in the this ASN1OctetString objectpublic ASN1OctetString(ASN1Decoder dec, java.io.InputStream in, int len) throws java.io.IOException
dec
- The decoder object to use when decoding the
input stream. Sometimes a developer might want to pass
in his/her own decoder objectin
- A byte stream that contains the encoded ASN.1
java.io.IOException
Method Detail |
---|
public final void encode(ASN1Encoder enc, java.io.OutputStream out) throws java.io.IOException
encode
in class ASN1Object
enc
- Encoder object to use when encoding self.out
- The output stream onto which the encoded byte
stream is written.
java.io.IOException
public final byte[] byteValue()
public final java.lang.String stringValue()
public java.lang.String toString()
toString
in class ASN1Object
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |