Top Description Inners Fields Constructors Methods
org.bouncycastle.asn1

public Class ASN1OutputStream

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.asn1.ASN1OutputStream.ImplicitOutputStream, org.bouncycastle.asn1.DEROutputStream, org.bouncycastle.asn1.DLOutputStream
Imports
java.io.IOException, .OutputStream

Stream that produces output based on the default encoding for the passed in objects.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private OutputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
pack-priv ASN1OutputStream
pack-priv ASN1OutputStream
pack-priv void
write(int b)

pack-priv void
write(byte[] bytes)

pack-priv void
write(byte[] bytes, int off, int len)

pack-priv void
writeEncoded(int tag, byte[] bytes)

pack-priv void
writeEncoded(int flags, int tagNo, byte[] bytes)

pack-priv void
pack-priv void
writeLength(int length)

protected void
public void
pack-priv void
writeTag(int flags, int tagNo)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

osback to summary
private OutputStream os

Constructor Detail

ASN1OutputStreamback to summary
public ASN1OutputStream(OutputStream os)

Method Detail

closeback to summary
public void close() throws IOException
flushback to summary
public void flush() throws IOException
getDERSubStreamback to summary
pack-priv ASN1OutputStream getDERSubStream()
getDLSubStreamback to summary
pack-priv ASN1OutputStream getDLSubStream()
writeback to summary
pack-priv void write(int b) throws IOException
writeback to summary
pack-priv void write(byte[] bytes) throws IOException
writeback to summary
pack-priv void write(byte[] bytes, int off, int len) throws IOException
writeEncodedback to summary
pack-priv void writeEncoded(int tag, byte[] bytes) throws IOException
writeEncodedback to summary
pack-priv void writeEncoded(int flags, int tagNo, byte[] bytes) throws IOException
writeImplicitObjectback to summary
pack-priv void writeImplicitObject(ASN1Primitive obj) throws IOException
writeLengthback to summary
pack-priv void writeLength(int length) throws IOException
writeNullback to summary
protected void writeNull() throws IOException
writeObjectback to summary
public void writeObject(ASN1Encodable obj) throws IOException
writeTagback to summary
pack-priv void writeTag(int flags, int tagNo) throws IOException
org.bouncycastle.asn1 back to summary

private Class ASN1OutputStream.ImplicitOutputStream

extends ASN1OutputStream
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.asn1.ASN1OutputStream:
closeflushgetDERSubStreamgetDLSubStreamwritewritewriteEncodedwriteEncodedwriteImplicitObjectwriteLengthwriteNullwriteObjectwriteTag

Field Detail

firstback to summary
private boolean first

Constructor Detail

ImplicitOutputStreamback to summary
public ImplicitOutputStream(OutputStream os)

Method Detail

writeback to summary
public void write(int b) throws IOException

Overrides org.bouncycastle.asn1.ASN1OutputStream.write.