FileDocCategorySizeDatePackage
BERSet.javaAPI DocAndroid 1.5 API1295Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1

BERSet

public class BERSet extends DERSet

Fields Summary
Constructors Summary
public BERSet()
create an empty sequence

    
public BERSet(DEREncodable obj)
create a set containing one object

        super(obj);
    
public BERSet(DEREncodableVector v)

param
v - a vector of objects making up the set.

        super(v, false);
    
BERSet(DEREncodableVector v, boolean needsSorting)

param
v - a vector of objects making up the set.

        super(v, needsSorting);
    
Methods Summary
voidencode(DEROutputStream out)

        if (out instanceof ASN1OutputStream || out instanceof BEROutputStream)
        {
            out.write(SET | CONSTRUCTED);
            out.write(0x80);
            
            Enumeration e = getObjects();
            while (e.hasMoreElements())
            {
                out.writeObject(e.nextElement());
            }
        
            out.write(0x00);
            out.write(0x00);
        }
        else
        {
            super.encode(out);
        }