|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1Type com.objsys.asn1j.runtime.Asn1OpenExt
public class Asn1OpenExt
This is a container class for holding open type elements that may occur within an open type extension (i.e. a ... at the end of a constructed type or a ..., ... at some other point in a constructed type).
Field Summary | |
---|---|
java.util.ArrayList |
value
The value is a list of Asn1OpenType objects. |
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mAsn1TypeName, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString |
Constructor Summary | |
---|---|
Asn1OpenExt()
|
Method Summary | |
---|---|
void |
decode(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
This method decodes an ASN.1 open type extension value using the Basic Encoding Rules (BER). |
void |
decode(Asn1PerDecodeBuffer buffer)
This method decodes an open type extension in a SEQUENCE or SET construct using the packed encoding rules (PER). |
void |
decodeComponent(Asn1BerDecodeBuffer buffer)
This method decodes a single component of a BER open type extension by decoding an open type value and appending it to the list of open type objects. |
void |
decodeEventComponent(Asn1BerDecodeBuffer buffer)
This method decodes a single component of a BER open type extension by decoding an open type value and appending it to the list of open type objects, this function also triggers event handler code, with element name "..." |
void |
decodeExtension(Asn1JsonDecodeBuffer buffer,
java.lang.String name)
Decode a single occurrence of an extension from JSON and add an Asn1OpenType for it to the list of extensions. |
Asn1OpenType |
decodeOpenType(Asn1PerDecodeBuffer buffer,
boolean present,
int index)
This method decodes a single open type extension item in a SEQUENCE or SET construct using the packed encoding rules (PER). |
int |
encode(Asn1BerEncodeBuffer buffer,
boolean explicit)
This method encodes an ASN.1 open type extension value using the Basic Encoding Rules (BER). |
void |
encode(Asn1BerOutputStream out,
boolean explicit)
This method encodes an ASN.1 open type extension value using the Basic Encoding Rules (BER) and writes it into the stream. |
void |
encode(Asn1JsonOutputStream outstream)
Encode the open extension elements to JSON |
void |
encode(Asn1PerEncodeBuffer buffer)
This method encodes an ASN.1 open type extension value using the Packed Encoding Rules (PER). |
void |
encode(Asn1PerOutputStream out)
This method encodes an ASN.1 open type extension value using the Packed Encoding Rules (PER). |
void |
encode(Asn1XerEncoder buffer)
This method encodes an ASN.1 open type extension value using the XML Encoding Rules (XER). |
void |
encode(Asn1XmlEncoder buffer)
This method encodes an ASN.1 integer value using the XML Encoding as specified in the XML schema standard (asn2xsd). |
void |
encodeExtBits(Asn1PerEncodeBuffer buffer)
This method encodes an ASN.1 open type extension value bits using the Packed Encoding Rules (PER). |
boolean |
equals(java.lang.Object o)
Compares extension lists. |
java.lang.String |
getAsn1TypeName()
This method returns "Open Type Extension" as the ASN.1 type name. |
int |
hashCode()
Returns the hashcode for an extension list. |
void |
setOpenType(Asn1OpenType object,
int index)
This method will add the given open type object to the open extension element list at the given index. |
java.lang.String |
toString()
This method will return a string representation of the open extension value. |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
clone, decode, decode, decode, decode, decode, decodeXML, encode, encode, equals, getLength, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public transient java.util.ArrayList value
Constructor Detail |
---|
public Asn1OpenExt()
Method Detail |
---|
public java.lang.String getAsn1TypeName()
getAsn1TypeName
in class Asn1Type
public void decodeEventComponent(Asn1BerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
buffer
- Decode message buffer object
Asn1Exception
java.io.IOException
public void decodeComponent(Asn1BerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
buffer
- Decode message buffer object
Asn1Exception
java.io.IOException
public void decode(Asn1BerDecodeBuffer buffer, boolean explicit, int implicitLength) throws Asn1Exception, java.io.IOException
decode
in interface Asn1TypeIF
decode
in class Asn1Type
buffer
- Decode message buffer objectexplicit
- Flag indicating element is explicitly taggedimplicitLength
- Length if implicit element
Asn1Exception
java.io.IOException
public int encode(Asn1BerEncodeBuffer buffer, boolean explicit) throws Asn1Exception
encode
in interface Asn1TypeIF
encode
in class Asn1Type
buffer
- Encode message buffer objectexplicit
- Flag indicating element is explicitly tagged
Asn1Exception
public void decode(Asn1PerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
value
public
member list variable. If optional items are absent, null
placeholders will be inserted in the list.
decode
in interface Asn1TypeIF
decode
in class Asn1Type
buffer
- Decode message buffer object
Asn1Exception
java.io.IOException
public Asn1OpenType decodeOpenType(Asn1PerDecodeBuffer buffer, boolean present, int index) throws Asn1Exception, java.io.IOException
buffer
- Decode message buffer objectpresent
- Flag indicating whether element is presentindex
- Index of element in the object array
Asn1Exception
java.io.IOException
public void encode(Asn1PerEncodeBuffer buffer) throws Asn1Exception, java.io.IOException
encode
in interface Asn1TypeIF
encode
in class Asn1Type
buffer
- Encode message buffer object
Asn1Exception
java.io.IOException
public void encodeExtBits(Asn1PerEncodeBuffer buffer) throws Asn1Exception, java.io.IOException
buffer
- Encode message buffer object
Asn1Exception
java.io.IOException
public void setOpenType(Asn1OpenType object, int index)
object
- Open type objectindex
- Index in open type list where element is to be placedpublic java.lang.String toString()
toString
in class java.lang.Object
public void encode(Asn1BerOutputStream out, boolean explicit) throws Asn1Exception, java.io.IOException
encode
in interface Asn1TypeIF
encode
in class Asn1Type
out
- BER Output Stream objectexplicit
- Flag indicating element is explicitly tagged
java.io.IOException
- Any exception thrown by the Asn1BerOutputStream.
Asn1Exception
- Thrown, if operation is failed.public void encode(Asn1PerOutputStream out) throws Asn1Exception, java.io.IOException
encode
in interface Asn1TypeIF
encode
in class Asn1Type
out
- PER Output Stream object
java.io.IOException
- Any exception thrown by the Asn1PerOutputStream.
Asn1Exception
- Thrown, if operation is failed.public void encode(Asn1XerEncoder buffer) throws java.io.IOException, Asn1Exception
encode
in interface Asn1TypeIF
encode
in class Asn1Type
buffer
- Encode message buffer object
java.io.IOException
- Any exception thrown by the underlying stream.
Asn1Exception
- Thrown, if operation is failed.public void encode(Asn1XmlEncoder buffer) throws java.io.IOException, Asn1Exception
buffer
- Encode message buffer object
java.io.IOException
Asn1Exception
public void decodeExtension(Asn1JsonDecodeBuffer buffer, java.lang.String name) throws java.io.IOException
buffer
- Decode message buffer objectname
- The name of the extension element (previously decoded).
This becomes a part of the character data held in the Asn1OpenType
object, so that the character data represents a full JSONNamedValue.
java.io.IOException
public void encode(Asn1JsonOutputStream outstream) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare.
public int hashCode()
hashCode
in class Asn1Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |