com.mindbright.asn1
public class ASN1Structure extends ASN1Object
Modifier and Type | Field and Description |
---|---|
protected com.mindbright.asn1.ASN1Structure.StructComponent[] |
components |
protected int |
count |
protected java.lang.Class<?> |
ofType |
isSet, tag
Modifier | Constructor and Description |
---|---|
protected |
ASN1Structure(int tag) |
protected |
ASN1Structure(int tag,
int initialSize) |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(ASN1Object component) |
void |
addComponent(ASN1Object component,
ASN1Object defaultValue,
boolean isOptional) |
void |
addOptional(ASN1Object component) |
void |
addOptional(ASN1Object component,
boolean defBoolean) |
void |
addOptional(ASN1Object component,
int defInteger) |
void |
decodeValue(ASN1Decoder decoder,
java.io.InputStream in,
int len) |
int |
encodeValue(ASN1Encoder encoder,
java.io.OutputStream out) |
boolean |
equals(java.lang.Object obj) |
ASN1Object |
getComponent(int index) |
int |
getCount() |
ASN1Object |
getDecodeComponent(int index,
int tag) |
ASN1Object |
getDefault(int index) |
ASN1Object |
getDistinctComponent(int tag) |
int |
hashCode() |
boolean |
isOptional(int index) |
protected java.lang.Class<?> |
ofType() |
decodeValue, getTag, getType, isSet, setValue, toString
protected com.mindbright.asn1.ASN1Structure.StructComponent[] components
protected int count
protected java.lang.Class<?> ofType
protected ASN1Structure(int tag)
protected ASN1Structure(int tag, int initialSize)
public int getCount()
public ASN1Object getComponent(int index)
public ASN1Object getDistinctComponent(int tag)
public boolean isOptional(int index)
public ASN1Object getDefault(int index)
public ASN1Object getDecodeComponent(int index, int tag) throws java.io.IOException
java.io.IOException
public void addComponent(ASN1Object component)
public void addComponent(ASN1Object component, ASN1Object defaultValue, boolean isOptional)
public void addOptional(ASN1Object component)
public void addOptional(ASN1Object component, int defInteger)
public void addOptional(ASN1Object component, boolean defBoolean)
public int encodeValue(ASN1Encoder encoder, java.io.OutputStream out) throws java.io.IOException
encodeValue
in class ASN1Object
java.io.IOException
public void decodeValue(ASN1Decoder decoder, java.io.InputStream in, int len) throws java.io.IOException
decodeValue
in class ASN1Object
java.io.IOException
protected java.lang.Class<?> ofType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object