com.mindbright.asn1
Class ASN1Structure
java.lang.Object
com.mindbright.asn1.ASN1Object
com.mindbright.asn1.ASN1Structure
- Direct Known Subclasses:
- ASN1Any.ASN1AnyStructure, ASN1ConstructedString, ASN1Explicit, ASN1Sequence, ASN1Set
- public class ASN1Structure
- extends ASN1Object
Field Summary |
protected com.mindbright.asn1.ASN1Structure.StructComponent[] |
components
|
protected int |
count
|
protected java.lang.Class |
ofType
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
components
protected com.mindbright.asn1.ASN1Structure.StructComponent[] components
count
protected int count
ofType
protected java.lang.Class ofType
ASN1Structure
protected ASN1Structure(int tag)
ASN1Structure
protected ASN1Structure(int tag,
int initialSize)
getCount
public int getCount()
getComponent
public ASN1Object getComponent(int index)
getDistinctComponent
public ASN1Object getDistinctComponent(int tag)
isOptional
public boolean isOptional(int index)
getDefault
public ASN1Object getDefault(int index)
getDecodeComponent
public ASN1Object getDecodeComponent(int index,
int tag)
throws java.io.IOException
- Throws:
java.io.IOException
addComponent
public void addComponent(ASN1Object component)
addComponent
public void addComponent(ASN1Object component,
ASN1Object defaultValue,
boolean isOptional)
addOptional
public void addOptional(ASN1Object component)
addOptional
public void addOptional(ASN1Object component,
int defInteger)
addOptional
public void addOptional(ASN1Object component,
boolean defBoolean)
encodeValue
public int encodeValue(ASN1Encoder encoder,
java.io.OutputStream out)
throws java.io.IOException
- Specified by:
encodeValue
in class ASN1Object
- Throws:
java.io.IOException
decodeValue
public void decodeValue(ASN1Decoder decoder,
java.io.InputStream in,
int len)
throws java.io.IOException
- Overrides:
decodeValue
in class ASN1Object
- Throws:
java.io.IOException
ofType
protected java.lang.Class ofType()
equals
public boolean equals(java.lang.Object obj)
hashCode
public int hashCode()