Package org.bouncycastle.asn1
Class BERGenerator
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Generator
-
- org.bouncycastle.asn1.BERGenerator
-
- Direct Known Subclasses:
BEROctetStringGenerator,BERSequenceGenerator
public class BERGenerator extends ASN1Generator
Base class for generators for indefinite-length structures.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.asn1.ASN1Generator
_out
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBERGenerator(java.io.OutputStream out)protectedBERGenerator(java.io.OutputStream out, int tagNo, boolean isExplicit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStreamgetRawOutputStream()Return the actual stream object encodings are written to.protected voidwriteBEREnd()protected voidwriteBERHeader(int tag)
-
-
-
Method Detail
-
getRawOutputStream
public java.io.OutputStream getRawOutputStream()
Description copied from class:ASN1GeneratorReturn the actual stream object encodings are written to.- Specified by:
getRawOutputStreamin classASN1Generator- Returns:
- the stream that is directly encoded to.
-
writeBERHeader
protected void writeBERHeader(int tag) throws java.io.IOException- Throws:
java.io.IOException
-
writeBEREnd
protected void writeBEREnd() throws java.io.IOException- Throws:
java.io.IOException
-
-