|
|||||||||
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.Asn1OpenType
com.objsys.asn1j.runtime.Asn1XerOpenType
public class Asn1XerOpenType
This is a container class for holding the an ASN.1 open type value. This is a special version of the class that is only generated for the XER encoding rules.
Nested Class Summary | |
---|---|
class |
Asn1XerOpenType.SaxHandler
|
Field Summary |
---|
Fields inherited from class com.objsys.asn1j.runtime.Asn1OpenType |
---|
mEncodeBuffer, mLength, mTextEncoding |
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 | |
---|---|
Asn1XerOpenType()
This constructor creates an empty type that can be used in a decode method call to receive an encoded value. |
|
Asn1XerOpenType(Asn1EncodeBuffer buffer)
This constructor initializes an open type using an encoded component. |
|
Asn1XerOpenType(byte[] data)
This constructor initializes an open type from the given byte array. |
|
Asn1XerOpenType(byte[] data,
int offset,
int nbytes)
This constructor initializes the open type from a portion of the given byte array. |
Method Summary | |
---|---|
void |
decode(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
This method decodes an ASN.1 open type value. |
void |
decode(Asn1PerDecodeBuffer buffer)
This method decodes an ASN.1 octet string value using the packed encoding rules (PER). |
int |
encode(Asn1BerEncodeBuffer buffer,
boolean explicit)
This method encodes an ASN.1 open type value. |
void |
encode(Asn1PerEncodeBuffer buffer)
This method encodes an ASN.1 open type value using the Packed Encoding Rules (PER). |
void |
encode(Asn1XerEncoder buffer)
This method is the base implementation of the standard XML Encoding Rules (XER) encode method. |
void |
encode(Asn1XerEncoder buffer,
java.lang.String elemName)
This method encodes an ASN.1 open type value using the XML Encoding Rules (XER). |
void |
encode(Asn1XmlEncoder buffer,
java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes an ASN.1 open type value using the XML Encoding as specified in the XML schema standard(asn2xsd). |
Asn1XerSaxHandler |
getSaxHandler()
|
Methods inherited from class com.objsys.asn1j.runtime.Asn1OpenType |
---|
encode, encode, toString |
Methods inherited from class com.objsys.asn1j.runtime.Asn1OctetString |
---|
compareTo, decode, decodeXER, decodeXML, encode, encode, encodeAttribute, equals, equals, getLength, toInputStream |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
clone, decode, decode, decode, 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 Asn1XerOpenType()
public Asn1XerOpenType(byte[] data)
data
- Byte array containing a previously encoded
message component.public Asn1XerOpenType(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 Asn1XerOpenType(Asn1EncodeBuffer buffer)
buffer
- Reference to encode buffer into which
component type was encoded.Method Detail |
---|
public void decode(Asn1BerDecodeBuffer buffer, boolean explicit, int implicitLength) throws Asn1Exception, java.io.IOException
decode
in interface Asn1TypeIF
decode
in class Asn1OpenType
buffer
- Decode message buffer objectexplicit
- Flag indicating element is explicitly taggedimplicitLength
- Length of contents if implicit
Asn1Exception
java.io.IOException
public int encode(Asn1BerEncodeBuffer buffer, boolean explicit) throws Asn1Exception
encode
in interface Asn1TypeIF
encode
in class Asn1OpenType
buffer
- Encode message buffer objectexplicit
- Flag indicating element is explicitly tagged
Asn1Exception
public void decode(Asn1PerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
decode
in interface Asn1TypeIF
decode
in class Asn1OctetString
buffer
- Decode message buffer object
Asn1Exception
java.io.IOException
public void encode(Asn1PerEncodeBuffer buffer) throws Asn1Exception, java.io.IOException
encode
in interface Asn1TypeIF
encode
in class Asn1OpenType
buffer
- Encode message buffer object
Asn1Exception
java.io.IOException
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
- Element namensPrefix
- Element namespace prefix value
java.io.IOException
- Any exception thrown by the underlying stream.
Asn1Exception
- Thrown, if operation is failed.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 encode(Asn1XerEncoder buffer) throws java.io.IOException, Asn1Exception
Asn1Type
encode
in interface Asn1TypeIF
encode
in class Asn1Type
buffer
- XER Encode message buffer object
java.io.IOException
- Any exception thrown by the underlying stream.
Asn1Exception
- Thrown, if operation is failed.public Asn1XerSaxHandler getSaxHandler()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |