FileDocCategorySizeDatePackage
BERSequence.javaAPI DocAzureus 3.0.3.41118Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1

BERSequence

public class BERSequence extends DERSequence

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

    
public BERSequence(DEREncodable obj)
create a sequence containing one object

        super(obj);
    
public BERSequence(DEREncodableVector v)
create a sequence containing a vector of objects.

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

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