// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.asn1;

import java.io.IOException;
import java.io.OutputStream;

public class BERSequenceGenerator extends BERGenerator
{
    public BERSequenceGenerator(final OutputStream outputStream) throws IOException {
        super(outputStream);
        this.writeBERHeader(48);
    }
    
    public BERSequenceGenerator(final OutputStream outputStream, final int n, final boolean b) throws IOException {
        super(outputStream, n, b);
        this.writeBERHeader(48);
    }
    
    public void addObject(final ASN1Encodable asn1Encodable) throws IOException {
        asn1Encodable.toASN1Primitive().encodeTo(this._out);
    }
    
    public void addObject(final ASN1Primitive asn1Primitive) throws IOException {
        asn1Primitive.encodeTo(this._out);
    }
    
    public void close() throws IOException {
        this.writeBEREnd();
    }
}
