public class OERInputStream
extends java.io.FilterInputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
OERInputStream.Choice |
static class |
OERInputStream.Sequence
OER sequence decoder, decodes prefix and determines which optional
parts are available.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.io.PrintWriter |
debugOutput |
protected java.io.PrintWriter |
debugStream |
| Constructor and Description |
|---|
OERInputStream(java.io.InputStream src)
Root decoder of OER streaming data.
|
OERInputStream(java.io.InputStream src,
int maxByteAllocation)
Create an OER input and set the maximum byte array allocation size;
|
| Modifier and Type | Method and Description |
|---|---|
OERInputStream.Choice |
choice() |
protected void |
debugPrint(java.lang.String what) |
java.math.BigInteger |
enumeration() |
java.math.BigInteger |
int16() |
java.math.BigInteger |
int32() |
java.math.BigInteger |
int64() |
java.math.BigInteger |
int8() |
static org.bouncycastle.asn1.ASN1Encodable |
parse(byte[] src,
Element element)
Decode byte array.
|
org.bouncycastle.asn1.ASN1Object |
parse(Element element) |
java.math.BigInteger |
parseInt(boolean unsigned,
int size) |
protected org.bouncycastle.asn1.ASN1Encodable |
parseOpenType(Element e) |
org.bouncycastle.oer.OERInputStream.LengthInfo |
readLength()
Reads a length determinant deals with long ans short versions.
|
java.math.BigInteger |
uint16() |
java.math.BigInteger |
uint32() |
java.math.BigInteger |
uint64() |
java.math.BigInteger |
uint8() |
protected java.io.PrintWriter debugOutput
protected java.io.PrintWriter debugStream
public OERInputStream(java.io.InputStream src)
src - source stream.public OERInputStream(java.io.InputStream src,
int maxByteAllocation)
src - The src.maxByteAllocation - the largest byte array that may eb allocated by this parser.public static org.bouncycastle.asn1.ASN1Encodable parse(byte[] src,
Element element)
throws java.io.IOException
src - The srcelement - The definitionjava.io.IOExceptionpublic org.bouncycastle.asn1.ASN1Object parse(Element element) throws java.io.IOException
java.io.IOExceptionpublic java.math.BigInteger parseInt(boolean unsigned,
int size)
throws java.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger uint8()
throws java.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger uint16()
throws java.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger uint32()
throws java.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger uint64()
throws java.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger int8()
throws java.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger int16()
throws java.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger int32()
throws java.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger int64()
throws java.lang.Exception
java.lang.Exceptionpublic org.bouncycastle.oer.OERInputStream.LengthInfo readLength()
throws java.io.IOException
java.lang.Exceptionjava.io.IOExceptionpublic java.math.BigInteger enumeration()
throws java.io.IOException
java.io.IOExceptionprotected org.bouncycastle.asn1.ASN1Encodable parseOpenType(Element e) throws java.io.IOException
java.io.IOExceptionpublic OERInputStream.Choice choice() throws java.io.IOException
java.io.IOExceptionprotected void debugPrint(java.lang.String what)