Class OEROutputStream

java.lang.Object
java.io.OutputStream
org.bouncycastle.oer.OEROutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class OEROutputStream extends OutputStream
  • Field Details

  • Constructor Details

    • OEROutputStream

      public OEROutputStream(OutputStream out)
  • Method Details

    • byteLength

      public static int byteLength(long value)
      The number of octets value occupies as an unsigned big-endian number with no leading zero octets: 0 for 0, 1 for 1..255, 2 for 256..65535, and 8 for any negative argument.
    • write

      public void write(org.bouncycastle.asn1.ASN1Encodable encodable, Element oerElement) throws IOException
      Throws:
      IOException
    • debugPrint

      protected void debugPrint(String what)
    • write

      public void write(int b) throws IOException
      Specified by:
      write in class OutputStream
      Throws:
      IOException
    • writePlainType

      public void writePlainType(org.bouncycastle.asn1.ASN1Encodable value, Element e) throws IOException
      Throws:
      IOException