Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class ASN1OutputStream

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

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

Field Summary

Modifier and TypeField and Description
private OutputStream

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public static ASN1OutputStream
public static ASN1OutputStream
create(OutputStream out, String encoding)

public void
pack-priv void
pack-priv DEROutputStream
pack-priv DLOutputStream
pack-priv static int
getLengthOfDL(int dl)

pack-priv static int
getLengthOfEncodingDL(boolean withID, int contentsLength)

pack-priv static int
pack-priv final void
write(int b)

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

pack-priv final void
writeDL(int length)

pack-priv void
pack-priv final void
writeEncodingDL(boolean withID, int identifier, byte contents)

pack-priv final void
writeEncodingDL(boolean withID, int identifier, byte[] contents)

pack-priv final void
writeEncodingDL(boolean withID, int identifier, byte[] contents, int contentsOff, int contentsLen)

pack-priv final void
writeEncodingDL(boolean withID, int identifier, byte contentsPrefix, byte[] contents, int contentsOff, int contentsLen)

pack-priv final void
writeEncodingDL(boolean withID, int identifier, byte[] contents, int contentsOff, int contentsLen, byte contentsSuffix)

pack-priv final void
writeEncodingDL(boolean withID, int flags, int tag, byte[] contents)

pack-priv final void
writeEncodingIL(boolean withID, int identifier, ASN1Encodable[] elements)

pack-priv final void
writeIdentifier(boolean withID, int identifier)

pack-priv final void
writeIdentifier(boolean withID, int flags, int tag)

public final void
public final void
pack-priv void
writePrimitive(ASN1Primitive primitive, boolean withID)

pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

osback to summary
private OutputStream os

Constructor Detail

ASN1OutputStreamback to summary
pack-priv ASN1OutputStream(OutputStream os)

Method Detail

closeback to summary
public void close() throws IOException
createback to summary
public static ASN1OutputStream create(OutputStream out)
createback to summary
public static ASN1OutputStream create(OutputStream out, String encoding)
flushback to summary
public void flush() throws IOException
flushInternalback to summary
pack-priv void flushInternal() throws IOException
getDERSubStreamback to summary
pack-priv DEROutputStream getDERSubStream()
getDLSubStreamback to summary
pack-priv DLOutputStream getDLSubStream()
getLengthOfDLback to summary
pack-priv static int getLengthOfDL(int dl)
getLengthOfEncodingDLback to summary
pack-priv static int getLengthOfEncodingDL(boolean withID, int contentsLength)
getLengthOfIdentifierback to summary
pack-priv static int getLengthOfIdentifier(int tag)
writeback to summary
pack-priv final void write(int b) throws IOException
writeback to summary
pack-priv final void write(byte[] bytes, int off, int len) throws IOException
writeDLback to summary
pack-priv final void writeDL(int length) throws IOException
writeElementsback to summary
pack-priv void writeElements(ASN1Encodable[] elements) throws IOException
writeEncodingDLback to summary
pack-priv final void writeEncodingDL(boolean withID, int identifier, byte contents) throws IOException
writeEncodingDLback to summary
pack-priv final void writeEncodingDL(boolean withID, int identifier, byte[] contents) throws IOException
writeEncodingDLback to summary
pack-priv final void writeEncodingDL(boolean withID, int identifier, byte[] contents, int contentsOff, int contentsLen) throws IOException
writeEncodingDLback to summary
pack-priv final void writeEncodingDL(boolean withID, int identifier, byte contentsPrefix, byte[] contents, int contentsOff, int contentsLen) throws IOException
writeEncodingDLback to summary
pack-priv final void writeEncodingDL(boolean withID, int identifier, byte[] contents, int contentsOff, int contentsLen, byte contentsSuffix) throws IOException
writeEncodingDLback to summary
pack-priv final void writeEncodingDL(boolean withID, int flags, int tag, byte[] contents) throws IOException
writeEncodingILback to summary
pack-priv final void writeEncodingIL(boolean withID, int identifier, ASN1Encodable[] elements) throws IOException
writeIdentifierback to summary
pack-priv final void writeIdentifier(boolean withID, int identifier) throws IOException
writeIdentifierback to summary
pack-priv final void writeIdentifier(boolean withID, int flags, int tag) throws IOException
writeObjectback to summary
public final void writeObject(ASN1Encodable encodable) throws IOException
writeObjectback to summary
public final void writeObject(ASN1Primitive primitive) throws IOException
writePrimitiveback to summary
pack-priv void writePrimitive(ASN1Primitive primitive, boolean withID) throws IOException
writePrimitivesback to summary
pack-priv void writePrimitives(ASN1Primitive[] primitives) throws IOException