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 |
| 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() |
org.bouncycastle.asn1.ASN1Object |
parse(OERDefinition.Element element) |
java.math.BigInteger |
parseInt(boolean unsigned,
int size) |
org.bouncycastle.oer.OERInputStream.LengthInfo |
readLength()
Reads a length determinant deals with long ans short versions.
|
OERInputStream.Sequence |
sequence(int expectedOptional,
boolean hasOptionalChildren,
boolean hasExtension) |
java.math.BigInteger |
uint16() |
java.math.BigInteger |
uint32() |
java.math.BigInteger |
uint64() |
java.math.BigInteger |
uint8() |
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 org.bouncycastle.asn1.ASN1Object parse(OERDefinition.Element element) throws java.lang.Exception
java.lang.Exceptionpublic 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.lang.Exception
java.lang.Exceptionpublic java.math.BigInteger enumeration()
throws java.lang.Exception
java.lang.Exceptionpublic OERInputStream.Sequence sequence(int expectedOptional, boolean hasOptionalChildren, boolean hasExtension) throws java.lang.Exception
java.lang.Exceptionpublic OERInputStream.Choice choice() throws java.lang.Exception
java.lang.Exceptionprotected void debugPrint(java.lang.String what)