FileDocCategorySizeDatePackage
BERSet.javaAPI DocAzureus 3.0.3.41078Tue Jun 08 05:12:56 BST 2004org.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)
create a set containing a vector of objects.

        super(v);
    
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);
        }