public class AsnWriter extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Formats.Asn1.AsnWriter
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.AsnWriter
|
static org.mases.jcobridge.JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
AsnWriter() |
AsnWriter(AsnEncodingRules ruleSet) |
AsnWriter(AsnEncodingRules ruleSet,
int initialCapacity) |
AsnWriter(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static AsnWriter |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into AsnWriter, a cast assert is made to check if types are compatible. |
void |
CopyTo(AsnWriter destination) |
byte[] |
Encode() |
<TState extends IJCOBridgeReflected> |
Encode(TState state,
Action_2 encodeCallback) |
boolean |
EncodedValueEquals(AsnWriter other) |
int |
GetEncodedLength() |
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() |
void |
PopOctetString(Nullable_1 tag) |
void |
PopSequence(Nullable_1 tag) |
void |
PopSetOf(Nullable_1 tag) |
void |
Reset() |
void |
setJCOInstance(org.mases.jcobridge.JCObject instance) |
void |
WriteBoolean(boolean value,
Nullable_1 tag) |
void |
WriteCharacterString(UniversalTagNumber encodingType,
java.lang.String value,
Nullable_1 tag) |
void |
WriteEnumeratedValue(Enum value,
Nullable_1 tag) |
<TEnum extends IJCOBridgeReflected> |
WriteEnumeratedValue(TEnum value,
Nullable_1 tag) |
void |
WriteGeneralizedTime(DateTimeOffset value,
boolean omitFractionalSeconds,
Nullable_1 tag) |
void |
WriteInteger(BigInteger value,
Nullable_1 tag) |
void |
WriteInteger(long value,
Nullable_1 tag) |
void |
WriteInteger(UInt64 value,
Nullable_1 tag) |
void |
WriteNamedBitList(BitArray value,
Nullable_1 tag) |
void |
WriteNamedBitList(Enum value,
Nullable_1 tag) |
<TEnum extends IJCOBridgeReflected> |
WriteNamedBitList(TEnum value,
Nullable_1 tag) |
void |
WriteNull(Nullable_1 tag) |
void |
WriteObjectIdentifier(java.lang.String oidValue,
Nullable_1 tag) |
void |
WriteUtcTime(DateTimeOffset value,
int twoDigitYearMax,
Nullable_1 tag) |
void |
WriteUtcTime(DateTimeOffset value,
Nullable_1 tag) |
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 AsnWriter()
throws java.lang.Throwable
java.lang.Throwablepublic AsnWriter(AsnEncodingRules ruleSet) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public AsnWriter(AsnEncodingRules ruleSet, int initialCapacity) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public AsnWriter(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static AsnWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into AsnWriter, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedAsnWriter instancejava.lang.Throwable - in case of error during cast operationpublic void CopyTo(AsnWriter destination) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, AsnContentException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionAsnContentExceptionOverflowExceptionpublic byte[] Encode()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
ArrayTypeMismatchException
public <TState extends IJCOBridgeReflected> void Encode(TState state, Action_2 encodeCallback) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public boolean EncodedValueEquals(AsnWriter other) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public int GetEncodedLength()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public 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 void PopOctetString(Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, AsnContentException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionAsnContentExceptionOverflowExceptionpublic void PopSequence(Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, AsnContentException, OverflowException
public void PopSetOf(Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, AsnContentException, OverflowException
public void Reset()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
setJCOInstance in class NetObjectpublic void WriteBoolean(boolean value,
Nullable_1 tag)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OverflowException,
IndexOutOfRangeException
public void WriteCharacterString(UniversalTagNumber encodingType, java.lang.String value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OverflowException, IndexOutOfRangeException
public void WriteEnumeratedValue(Enum value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OverflowException, IndexOutOfRangeException
public <TEnum extends IJCOBridgeReflected> void WriteEnumeratedValue(TEnum value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException
public void WriteGeneralizedTime(DateTimeOffset value, boolean omitFractionalSeconds, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, DivideByZeroException, OverflowException, IndexOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionDivideByZeroExceptionOverflowExceptionIndexOutOfRangeExceptionFormatExceptionpublic void WriteInteger(BigInteger value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException
public void WriteInteger(long value,
Nullable_1 tag)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OverflowException,
IndexOutOfRangeException
public void WriteInteger(UInt64 value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException
public void WriteNamedBitList(BitArray value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OverflowException
public void WriteNamedBitList(Enum value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OverflowException
public <TEnum extends IJCOBridgeReflected> void WriteNamedBitList(TEnum value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, OverflowException
public void WriteNull(Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException
public void WriteObjectIdentifier(java.lang.String oidValue,
Nullable_1 tag)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
OverflowException
public void WriteUtcTime(DateTimeOffset value, int twoDigitYearMax, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException
public void WriteUtcTime(DateTimeOffset value, Nullable_1 tag) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException