Top Description Fields Constructors Methods
org.bouncycastle.asn1

public abstract Class BERGenerator

extends ASN1Generator
Class Inheritance
Known Direct Subclasses
org.bouncycastle.asn1.BEROctetStringGenerator, org.bouncycastle.asn1.BERSequenceGenerator
Imports
java.io.IOException, .OutputStream

Base class for generators for indefinite-length structures.

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private int
Inherited from org.bouncycastle.asn1.ASN1Generator:
_out

Constructor Summary

AccessConstructor and Description
protected
protected
BERGenerator(OutputStream out, int tagNo, boolean isExplicit)

Method Summary

Modifier and TypeMethod and Description
public OutputStream
getRawOutputStream()

Implements abstract org.bouncycastle.asn1.ASN1Generator.getRawOutputStream.

Return the actual stream object encodings are written to.
protected void
protected void
writeBERHeader(int tag)

private void
writeHdr(int tag)

Field Detail

_isExplicitback to summary
private boolean _isExplicit
_taggedback to summary
private boolean _tagged
_tagNoback to summary
private int _tagNo

Constructor Detail

BERGeneratorback to summary
protected BERGenerator(OutputStream out)
BERGeneratorback to summary
protected BERGenerator(OutputStream out, int tagNo, boolean isExplicit)

Method Detail

getRawOutputStreamback to summary
public OutputStream getRawOutputStream()

Implements abstract org.bouncycastle.asn1.ASN1Generator.getRawOutputStream.

Doc from org.bouncycastle.asn1.ASN1Generator.getRawOutputStream.

Return the actual stream object encodings are written to.

Returns:OutputStream

the stream that is directly encoded to.

writeBEREndback to summary
protected void writeBEREnd() throws IOException
writeBERHeaderback to summary
protected void writeBERHeader(int tag) throws IOException
writeHdrback to summary
private void writeHdr(int tag) throws IOException