|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.objsys.asn1j.runtime.Asn1Type
com.objsys.asn1j.runtime.Asn1OctetString
com.objsys.asn1j.runtime.Asn1XerBase64OctetString
public class Asn1XerBase64OctetString
This is a container class for holding the components of an ASN.1 octet string value. This is a special version of the class that is only generated for the XER encoding rules, if Base64 encoding is used.
Field Summary |
---|
Fields inherited from class com.objsys.asn1j.runtime.Asn1OctetString |
---|
TAG, value |
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
BIT_STRING, BMPString, BOOLEAN, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OpenType, PrintableString, REAL, RelativeOID, SEQUENCE, SET, T61String, TeletexString, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString |
Constructor Summary | |
---|---|
Asn1XerBase64OctetString()
This constructor creates an empty octet string that can be used in a decode method call to receive an octet string value. |
|
Asn1XerBase64OctetString(byte[] data)
This constructor initializes an octet string from the given byte array. |
|
Asn1XerBase64OctetString(byte[] data,
int offset,
int nbytes)
This constructor initializes an octet string from a portion of the given byte array. |
|
Asn1XerBase64OctetString(java.lang.String value_)
This constructor parses the given ASN.1 value text (either a binary or hex data string) and assigns the values to the internal bit string. |
Method Summary | |
---|---|
void |
decodeXER(java.lang.String buffer,
java.lang.String attrs)
This method decodes ASN.1 octet string type using the XML encoding rules (XER). |
void |
decodeXML(java.lang.String buffer,
java.lang.String attrs)
This method decodes an ASN.1 octet string type using the XML schema encoding rules. |
void |
encode(Asn1XerEncoder buffer,
java.lang.String elemName)
This method encodes ASN.1 octet string type using the XML encoding rules (XER). |
void |
encode(Asn1XmlEncoder buffer,
java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes ASN.1 octet string type with element and attribute name tag according to the XML Encoding as specified in the XML schema standard(asn2xsd). |
Methods inherited from class com.objsys.asn1j.runtime.Asn1OctetString |
---|
compareTo, decode, decode, decode, encode, encode, encode, encode, encode, encode, encodeAttribute, equals, equals, getLength, toInputStream, toString |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
clone, decode, decode, decode, encode, encode, encode, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Asn1XerBase64OctetString()
public Asn1XerBase64OctetString(byte[] data)
data
- Byte array containing an octet string
in binary form.public Asn1XerBase64OctetString(byte[] data, int offset, int nbytes)
data
- Byte array containing an octet string
in binary form.offset
- Starting offset in data from which to copy bytesnbytes
- Number of bytes to copy from target arraypublic Asn1XerBase64OctetString(java.lang.String value_) throws Asn1ValueParseException
value_
- The ASN.1 value specification text
Asn1ValueParseException
Method Detail |
---|
public void encode(Asn1XerEncoder buffer, java.lang.String elemName) throws java.io.IOException, Asn1Exception
encode
in interface Asn1TypeIF
encode
in class Asn1OctetString
buffer
- Encode message buffer objectelemName
- XML element name used to wrap string
java.io.IOException
- Any exception thrown by the underlying stream.
Asn1Exception
- Thrown, if operation is failed.public void decodeXER(java.lang.String buffer, java.lang.String attrs) throws Asn1Exception
decodeXER
in class Asn1OctetString
buffer
- String containing data to be decodedattrs
- Attributes string from element tag
Asn1Exception
public void encode(Asn1XmlEncoder buffer, java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
encode
in interface Asn1TypeIF
encode
in class Asn1OctetString
buffer
- Encode message buffer objectelemName
- XML element name used to wrap stringnsPrefix
- Element namespace prefix value
java.io.IOException
- Any exception thrown by the underlying stream.
Asn1Exception
- Thrown, if operation is failed.public void decodeXML(java.lang.String buffer, java.lang.String attrs) throws Asn1Exception
decodeXML
in interface Asn1TypeIF
decodeXML
in class Asn1OctetString
buffer
- String containing data to be decodedattrs
- Attributes string from element tag
Asn1Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |