Top Fields Constructors Methods
org.bouncycastle.oer

public Class OEROutputStream

extends OutputStream
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException, .OutputStream, .PrintWriter, java.math.BigInteger, java.util.Enumeration, .Iterator, .List, org.bouncycastle.asn1.ASN1BitString, .ASN1Boolean, .ASN1Encodable, .ASN1Enumerated, .ASN1IA5String, .ASN1Integer, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1Set, .ASN1TaggedObject, .ASN1UTF8String, .BERTags, org.bouncycastle.util.BigIntegers, .Pack, .Strings, org.bouncycastle.util.encoders.Hex

Field Summary

Modifier and TypeField and Description
private static final int[]
protected PrintWriter
private final OutputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
byteLength(long value)

protected void
private void
encodeLength(long len)

private void
encodeQuantity(long quantity)

public void
write(ASN1Encodable encodable, Element oerElement)

public void
write(int
the byte.
b
)

Implements abstract java.io.OutputStream.write.

Writes the specified byte to this output stream.

public void
Inherited from java.io.OutputStream:
closeflushnullOutputStreamwritewrite

Field Detail

bitsback to summary
private static final int[] bits
debugOutputback to summary
protected PrintWriter debugOutput
outback to summary
private final OutputStream out

Constructor Detail

OEROutputStreamback to summary
public OEROutputStream(OutputStream out)

Method Detail

byteLengthback to summary
public static int byteLength(long value)
debugPrintback to summary
protected void debugPrint(String what)
encodeLengthback to summary
private void encodeLength(long len) throws IOException
encodeQuantityback to summary
private void encodeQuantity(long quantity) throws IOException
writeback to summary
public void write(ASN1Encodable encodable, Element oerElement) throws IOException
writeback to summary
public void write(int b) throws IOException

Implements abstract java.io.OutputStream.write.

Doc from java.io.OutputStream.write.

Writes the specified byte to this output stream. The general contract for write is that one byte is written to the output stream. The byte to be written is the eight low-order bits of the argument b. The 24 high-order bits of b are ignored.

Parameters
b:int

the byte.

Exceptions
IOException:
if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
writePlainTypeback to summary
public void writePlainType(ASN1Encodable value, Element e) throws IOException