1package org.bouncycastle.asn1; 2 3import java.io.OutputStream; 4 5/** 6 * Basic class for streaming generators. 7 */ 8public abstract class ASN1Generator 9{ 10 protected OutputStream _out; 11 12 /** 13 * Base constructor. 14 * 15 * @param out the end output stream that object encodings are written to. 16 */ 17 public ASN1Generator(OutputStream out) 18 { 19 _out = out; 20 } 21 22 /** 23 * Return the actual stream object encodings are written to. 24 * 25 * @return the stream that is directly encoded to. 26 */ 27 public abstract OutputStream getRawOutputStream(); 28} 29