01: package org.bouncycastle.sasn1;
02:
03: import java.io.IOException;
04: import java.io.OutputStream;
05:
06: /**
07: * @deprecated use corresponsding classes in org.bouncycastle.asn1.
08: */
09: public class BerSequenceGenerator extends BerGenerator {
10: public BerSequenceGenerator(OutputStream out) throws IOException {
11: super (out);
12:
13: writeBerHeader(BerTag.CONSTRUCTED | BerTag.SEQUENCE);
14: }
15:
16: public BerSequenceGenerator(OutputStream out, int tagNo,
17: boolean isExplicit) throws IOException {
18: super (out, tagNo, isExplicit);
19:
20: writeBerHeader(BerTag.CONSTRUCTED | BerTag.SEQUENCE);
21: }
22:
23: public void addObject(DerObject object) throws IOException {
24: _out.write(object.getEncoded());
25: }
26:
27: public void close() throws IOException {
28: writeBerEnd();
29: }
30: }
|