Package org.gudy.bouncycastle.asn1
Class BERGenerator
- java.lang.Object
-
- org.gudy.bouncycastle.asn1.ASN1Generator
-
- org.gudy.bouncycastle.asn1.BERGenerator
-
- Direct Known Subclasses:
BEROctetStringGenerator
,BERSequenceGenerator
public class BERGenerator extends ASN1Generator
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_isExplicit
private boolean
_tagged
private int
_tagNo
-
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Generator
_out
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BERGenerator(java.io.OutputStream out)
BERGenerator(java.io.OutputStream out, int tagNo, boolean isExplicit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStream
getRawOutputStream()
protected void
writeBERBody(java.io.InputStream contentStream)
protected void
writeBEREnd()
protected void
writeBERHeader(int tag)
private void
writeHdr(int tag)
-
-
-
Method Detail
-
getRawOutputStream
public java.io.OutputStream getRawOutputStream()
- Specified by:
getRawOutputStream
in classASN1Generator
-
writeHdr
private void writeHdr(int tag) throws java.io.IOException
- Throws:
java.io.IOException
-
writeBERHeader
protected void writeBERHeader(int tag) throws java.io.IOException
- Throws:
java.io.IOException
-
writeBERBody
protected void writeBERBody(java.io.InputStream contentStream) throws java.io.IOException
- Throws:
java.io.IOException
-
writeBEREnd
protected void writeBEREnd() throws java.io.IOException
- Throws:
java.io.IOException
-
-