public class AsnReader extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Formats.Asn1.AsnReader
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Formats.Asn1, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Formats.Asn1
|
static java.lang.String |
className
Qualified class name: System.Formats.Asn1.AsnReader
|
static org.mases.jcobridge.JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
AsnReader() |
AsnReader(java.lang.Object instance)
Internal constructor.
|
AsnReader(ReadOnlyMemory_1 data,
AsnEncodingRules ruleSet,
AsnReaderOptions options) |
| Modifier and Type | Method and Description |
|---|---|
static AsnReader |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into AsnReader, a cast assert is made to check if types are compatible. |
AsnReader |
Clone() |
boolean |
getHasData() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
org.mases.jcobridge.JCType |
getJCOType()
Returns the instantiated class Type
|
AsnEncodingRules |
getRuleSet() |
ReadOnlyMemory_1 |
PeekContentBytes() |
ReadOnlyMemory_1 |
PeekEncodedValue() |
Asn1Tag |
PeekTag() |
byte[] |
ReadBitString(JCORefOut<java.util.concurrent.atomic.AtomicInteger> unusedBitCount,
Nullable_1 expectedTag) |
boolean |
ReadBoolean(Nullable_1 expectedTag) |
java.lang.String |
ReadCharacterString(UniversalTagNumber encodingType,
Nullable_1 expectedTag) |
ReadOnlyMemory_1 |
ReadEncodedValue() |
ReadOnlyMemory_1 |
ReadEnumeratedBytes(Nullable_1 expectedTag) |
Enum |
ReadEnumeratedValue(NetType enumType,
Nullable_1 expectedTag) |
DateTimeOffset |
ReadGeneralizedTime(Nullable_1 expectedTag) |
BigInteger |
ReadInteger(Nullable_1 expectedTag) |
ReadOnlyMemory_1 |
ReadIntegerBytes(Nullable_1 expectedTag) |
BitArray |
ReadNamedBitList(Nullable_1 expectedTag) |
Enum |
ReadNamedBitListValue(NetType flagsEnumType,
Nullable_1 expectedTag) |
void |
ReadNull(Nullable_1 expectedTag) |
java.lang.String |
ReadObjectIdentifier(Nullable_1 expectedTag) |
byte[] |
ReadOctetString(Nullable_1 expectedTag) |
AsnReader |
ReadSequence(Nullable_1 expectedTag) |
AsnReader |
ReadSetOf(boolean skipSortOrderValidation,
Nullable_1 expectedTag) |
AsnReader |
ReadSetOf(Nullable_1 expectedTag) |
DateTimeOffset |
ReadUtcTime(int twoDigitYearMax,
Nullable_1 expectedTag) |
DateTimeOffset |
ReadUtcTime(Nullable_1 expectedTag) |
void |
setJCOInstance(org.mases.jcobridge.JCObject instance) |
void |
ThrowIfNotEmpty() |
boolean |
TryReadInt32(JCORefOut<java.util.concurrent.atomic.AtomicInteger> value,
Nullable_1 expectedTag) |
boolean |
TryReadInt64(JCORefOut<java.util.concurrent.atomic.AtomicLong> value,
Nullable_1 expectedTag) |
boolean |
TryReadPrimitiveBitString(JCORefOut<java.util.concurrent.atomic.AtomicInteger> unusedBitCount,
JCORefOut<ReadOnlyMemory_1> value,
Nullable_1 expectedTag) |
boolean |
TryReadPrimitiveCharacterStringBytes(Asn1Tag expectedTag,
JCORefOut<ReadOnlyMemory_1> contents) |
boolean |
TryReadPrimitiveOctetString(JCORefOut<ReadOnlyMemory_1> contents,
Nullable_1 expectedTag) |
boolean |
TryReadUInt32(JCORefOut<UInt32> value,
Nullable_1 expectedTag) |
boolean |
TryReadUInt64(JCORefOut<UInt64> value,
Nullable_1 expectedTag) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public static org.mases.jcobridge.JCType classType
JCTypepublic AsnReader()
throws java.lang.Throwable
java.lang.Throwablepublic AsnReader(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic AsnReader(ReadOnlyMemory_1 data, AsnEncodingRules ruleSet, AsnReaderOptions options) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static AsnReader cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into AsnReader, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedAsnReader instancejava.lang.Throwable - in case of error during cast operationpublic AsnReader Clone() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public boolean getHasData()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic org.mases.jcobridge.JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic AsnEncodingRules getRuleSet() throws java.lang.Throwable
java.lang.Throwablepublic ReadOnlyMemory_1 PeekContentBytes() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, AsnContentException, InvalidOperationException
public ReadOnlyMemory_1 PeekEncodedValue() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, AsnContentException, InvalidOperationException
public Asn1Tag PeekTag() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, AsnContentException
public byte[] ReadBitString(JCORefOut<java.util.concurrent.atomic.AtomicInteger> unusedBitCount, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException, FormatException, ArrayTypeMismatchException
public boolean ReadBoolean(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, AsnContentException, OutOfMemoryException, InvalidOperationException, FormatException
public java.lang.String ReadCharacterString(UniversalTagNumber encodingType, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, AsnContentException, ArgumentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException, ArrayTypeMismatchException
public ReadOnlyMemory_1 ReadEncodedValue() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, AsnContentException
public ReadOnlyMemory_1 ReadEnumeratedBytes(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, FormatException, InvalidOperationException
public Enum ReadEnumeratedValue(NetType enumType, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, IndexOutOfRangeException, AsnContentException, OutOfMemoryException, InvalidOperationException, NotSupportedException
public DateTimeOffset ReadGeneralizedTime(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, FormatException, ArgumentException, AsnContentException, OutOfMemoryException, ArrayTypeMismatchException, OverflowException, SecurityException, NotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionFormatExceptionArgumentExceptionAsnContentExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionOverflowExceptionSecurityExceptionNotSupportedExceptionpublic BigInteger ReadInteger(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, RankException, InvalidCastException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentExceptionAsnContentExceptionArgumentNullExceptionOutOfMemoryExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionRankExceptionInvalidCastExceptionpublic ReadOnlyMemory_1 ReadIntegerBytes(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, FormatException, InvalidOperationException
public BitArray ReadNamedBitList(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, AsnContentException, InvalidOperationException, OutOfMemoryException, NotSupportedException, FormatException, ArrayTypeMismatchException, RankException, InvalidCastException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionAsnContentExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedExceptionFormatExceptionArrayTypeMismatchExceptionRankExceptionInvalidCastExceptionpublic Enum ReadNamedBitListValue(NetType flagsEnumType, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, IndexOutOfRangeException, AsnContentException, OutOfMemoryException, InvalidOperationException, NotSupportedException
public void ReadNull(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, AsnContentException, OutOfMemoryException, InvalidOperationException, FormatException
public java.lang.String ReadObjectIdentifier(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, AsnContentException, OutOfMemoryException, InvalidOperationException, FormatException, ArrayTypeMismatchException, NotSupportedException, RankException, InvalidCastException, OverflowException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionAsnContentExceptionOutOfMemoryExceptionInvalidOperationExceptionFormatExceptionArrayTypeMismatchExceptionNotSupportedExceptionRankExceptionInvalidCastExceptionOverflowExceptionpublic byte[] ReadOctetString(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, FormatException, InvalidOperationException, ArrayTypeMismatchException
public AsnReader ReadSequence(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, AsnContentException, OutOfMemoryException, InvalidOperationException, NotSupportedException, FormatException
public AsnReader ReadSetOf(boolean skipSortOrderValidation, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, AsnContentException, OutOfMemoryException, InvalidOperationException, NotSupportedException, FormatException
public AsnReader ReadSetOf(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, InvalidOperationException, AsnContentException, ArgumentNullException, OutOfMemoryException, FormatException, NotSupportedException
public DateTimeOffset ReadUtcTime(int twoDigitYearMax, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, FormatException, ArgumentException, AsnContentException, OutOfMemoryException, ArrayTypeMismatchException, OverflowException
public DateTimeOffset ReadUtcTime(Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, FormatException, ArgumentException, AsnContentException, OutOfMemoryException, ArrayTypeMismatchException, OverflowException
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
setJCOInstance in class NetObjectpublic void ThrowIfNotEmpty()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
AsnContentException
public boolean TryReadInt32(JCORefOut<java.util.concurrent.atomic.AtomicInteger> value, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException
public boolean TryReadInt64(JCORefOut<java.util.concurrent.atomic.AtomicLong> value, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException
public boolean TryReadPrimitiveBitString(JCORefOut<java.util.concurrent.atomic.AtomicInteger> unusedBitCount, JCORefOut<ReadOnlyMemory_1> value, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException, FormatException
public boolean TryReadPrimitiveCharacterStringBytes(Asn1Tag expectedTag, JCORefOut<ReadOnlyMemory_1> contents) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, IndexOutOfRangeException, AsnContentException, OutOfMemoryException, InvalidOperationException
public boolean TryReadPrimitiveOctetString(JCORefOut<ReadOnlyMemory_1> contents, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException, FormatException
public boolean TryReadUInt32(JCORefOut<UInt32> value, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException
public boolean TryReadUInt64(JCORefOut<UInt64> value, Nullable_1 expectedTag) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, AsnContentException, ArgumentNullException, OutOfMemoryException, InvalidOperationException