codec.asn1
Class ASN1Set

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--codec.asn1.ASN1AbstractCollection
                          |
                          +--codec.asn1.ASN1Set
All Implemented Interfaces:
ASN1Collection, ASN1Type, Cloneable, Collection, Externalizable, List, Serializable
Direct Known Subclasses:
ASN1SetOf

public class ASN1Set
extends ASN1AbstractCollection

Represents an ASN.1 SET type as specified in ITU-T Recommendation X.680.

This implementation does not sort the elements according to their encodings as required (in principle) by the standard. Upon decoding, all decoded elements are kept in the order they appeared in the encoded stream.

Version:
"$Id: ASN1Set.java,v 1.2 2000/12/06 17:47:26 vroth Exp $"
Author:
Volker Roth
See Also:
Serialized Form

Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ASN1Set()
           
ASN1Set(int capacity)
          Creates an instance with the given capacity.
 
Method Summary
 int getTag()
          Returns the SET tag.
 
Methods inherited from class codec.asn1.ASN1AbstractCollection
checkConstraints, decode, encode, getCollection, getConstraint, getTagClass, getValue, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, toString, writeExternal
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

ASN1Set

public ASN1Set()

ASN1Set

public ASN1Set(int capacity)
Creates an instance with the given capacity.
Parameters:
capacity - The capacity.
Method Detail

getTag

public int getTag()
Returns the SET tag.
Overrides:
getTag in class ASN1AbstractCollection
Returns:
The SET tag.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.