Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Open Source
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

Asn1TypeIF Interface Reference

Inheritance diagram for Asn1TypeIF:

Asn1Type Asn1BigInteger Asn1BitString Asn1Boolean Asn1CharString Asn1Choice Asn1Enumerated Asn1Integer Asn1Null Asn1ObjectIdentifier Asn1OctetString Asn1OpenExt Asn1Real Asn1UniversalString List of all members.

Detailed Description

This is the base interface for all ASN.1 built-in types.


Public Member Functions

void Decode (System.Object reader, System.IO.Stream byteStream)
void Decode (System.Object reader, System.String xmlURI)
void Decode (Asn1PerDecodeBuffer buffer)
void Decode (Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength)
void Encode (Asn1PerOutputStream outs)
void Encode (Asn1BerOutputStream outs, bool explicitTagging)
void Encode (Asn1XerEncoder buffer, System.String elemName, System.String attribute)
void Encode (Asn1XmlEncodeBuffer buffer)
void Encode (Asn1XerEncoder buffer, System.String elemName)
void Encode (Asn1XerEncoder buffer)
void Encode (Asn1PerEncodeBuffer buffer)
int Encode (Asn1BerEncodeBuffer buffer, bool explicitTagging)
bool IsOpenType ()
void Print (System.IO.TextWriter outs, System.String varName, int level)
void SetOpenType ()


Member Function Documentation

void Decode System.Object  reader,
System.IO.Stream  byteStream
 

This method declaration is the signature of the standard XML Encoding Rules (XER) Decode method.

Throws an IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

Parameters:
reader XML reader object
byteStream Input byte stream object
Exceptions:
Asn1Exception Thrown, if operation is failed.

Implemented in Asn1Type.

void Decode System.Object  reader,
System.String  xmlURI
 

This method declaration is the signature of the standard XML Encoding Rules (XER) Decode method.

Throws an IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

Parameters:
reader XML reader object
xmlURI URI of a source
Exceptions:
Asn1Exception Thrown, if operation is failed.

Implemented in Asn1Type.

void Decode Asn1PerDecodeBuffer  buffer  ) 
 

This method declaration is the signature of the standard Packed Encoding Rules (PER) Decode method.

Parameters:
buffer PER Encode message buffer object

Implemented in Asn18BitCharString, Asn1BigInteger, Asn1BitString, Asn1BMPString, Asn1Boolean, Asn1ChoiceExt, Asn1Integer, Asn1Null, Asn1NumericString, Asn1ObjectIdentifier, Asn1OctetString, Asn1OpenExt, Asn1Real, Asn1RelativeOID, Asn1Time, Asn1Type, Asn1UniversalString, Asn1UTF8String, Asn1VarWidthCharString, and Asn1XerOpenType.

void Decode Asn1BerDecodeBuffer  buffer,
bool  explicitTagging,
int  implicitLength
 

This method declaration is the signature of the standard Basic Encoding Rules (BER) or Distinguished Encoding Rules (DER) Decode method.

Parameters:
buffer Decode message buffer object
explicitTagging Flag indicating explicit tag should be parsed from the encoded type.
implicitLength Length of the contents field (only required if explicit is false).

Implemented in Asn1BigInteger, Asn1BitString, Asn1BMPString, Asn1Boolean, Asn1ChoiceExt, Asn1Enumerated, Asn1GeneralizedTime, Asn1GeneralString, Asn1GraphicString, Asn1IA5String, Asn1Integer, Asn1Null, Asn1NumericString, Asn1ObjectDescriptor, Asn1ObjectIdentifier, Asn1OctetString, Asn1OpenExt, Asn1OpenType, Asn1PrintableString, Asn1Real, Asn1RelativeOID, Asn1T61String, Asn1Type, Asn1UniversalString, Asn1UTCTime, Asn1UTF8String, Asn1VideotexString, Asn1VisibleString, and Asn1XerOpenType.

void Encode Asn1PerOutputStream  outs  ) 
 

This method declaration is the signature of the streaming oriented PER encode method.

Also throws any exception thrown by the Asn1PerOutputStream.

Parameters:
outs PER Output Stream object
Exceptions:
Asn1Exception Thrown, if operation is failed.

Implemented in Asn18BitCharString, Asn1BigInteger, Asn1BitString, Asn1BMPString, Asn1Boolean, Asn1ChoiceExt, Asn1Integer, Asn1Null, Asn1ObjectIdentifier, Asn1OctetString, Asn1OpenExt, Asn1OpenType, Asn1Real, Asn1RelativeOID, Asn1Time, Asn1Type, Asn1UniversalString, Asn1UTF8String, and Asn1VarWidthCharString.

void Encode Asn1BerOutputStream  outs,
bool  explicitTagging
 

This method declaration is the signature of the streaming oriented BER encode method.

Throws, Exception thrown by C# System.IO.Stream for I/O error

Parameters:
outs BER Output Stream object
explicitTagging Flag indicating explicit tagging should be done
Exceptions:
Asn1Exception Thrown, if operation is failed.

Implemented in Asn1BigInteger, Asn1BitString, Asn1BMPString, Asn1Boolean, Asn1ChoiceExt, Asn1Enumerated, Asn1GeneralizedTime, Asn1GeneralString, Asn1GraphicString, Asn1IA5String, Asn1Integer, Asn1Null, Asn1NumericString, Asn1ObjectDescriptor, Asn1ObjectIdentifier, Asn1OctetString, Asn1OpenExt, Asn1OpenType, Asn1PrintableString, Asn1Real, Asn1RelativeOID, Asn1T61String, Asn1Type, Asn1UniversalString, Asn1UTCTime, Asn1UTF8String, Asn1VideotexString, and Asn1VisibleString.

void Encode Asn1XerEncoder  buffer,
System.String  elemName,
System.String  attribute
 

This method declaration is the signature of the standard XML Encoding as specified in the XML schema standard(asn2xsd).

Also throws any exception thrown by the underlying stream.

Parameters:
buffer XER Encode message buffer object
elemName XML element name of item
attribute Element attribute value
Exceptions:
Asn1Exception Thrown, if operation is failed.

Implemented in Asn1BigInteger, Asn1BitString, Asn1Boolean, Asn1CharString, Asn1Enumerated, Asn1GeneralizedTime, Asn1Integer, Asn1Null, Asn1ObjectIdentifier, Asn1OctetString, Asn1Real, Asn1RelativeOID, Asn1Type, Asn1UniversalString, Asn1UTCTime, Asn1XerBase64OctetString, and Asn1XerOpenType.

void Encode Asn1XmlEncodeBuffer  buffer  ) 
 

This method declaration is the signature of the standard XML Encoding as specified in the XML schema standard(asn2xsd). This method invokes the generated method with element name and attribute name set to null. This will cause the ASN.1 type name to be used as the top-level element name.

Also throws any exception thrown by the underlying stream.

Parameters:
buffer XER Encode message buffer object
Exceptions:
Asn1Exception Thrown, if operation is failed.

Implemented in Asn1Type.

void Encode Asn1XerEncoder  buffer,
System.String  elemName
 

This method declaration is the signature of the standard XML Encoding Rules (XER) encode method.

Also throws any exception thrown by the underlying stream.

Parameters:
buffer XER Encode message buffer object
elemName XML element name of item
Exceptions:
Asn1Exception Thrown, if operation is failed.

Implemented in Asn1BigInteger, Asn1BitString, Asn1Boolean, Asn1CharString, Asn1Enumerated, Asn1Integer, Asn1Null, Asn1ObjectIdentifier, Asn1OctetString, Asn1Real, Asn1RelativeOID, Asn1Type, Asn1UniversalString, Asn1XerBase64OctetString, and Asn1XerOpenType.

void Encode Asn1XerEncoder  buffer  ) 
 

This method declaration is the signature of the standard XML Encoding Rules (XER) encode method. This method invokes the generated method with element name set to null. This will cause the ASN.1 type name to be used as the top-level element name.

Also throws any exception thrown by the underlying stream.

Parameters:
buffer XER Encode message buffer object
Exceptions:
Asn1Exception Thrown, if operation is failed.

Implemented in Asn1OpenExt, Asn1Type, and Asn1XerOpenType.

void Encode Asn1PerEncodeBuffer  buffer  ) 
 

This method declaration is the signature of the standard Packed Encoding Rules (PER) encode method.

Parameters:
buffer PER Encode message buffer object

Implemented in Asn18BitCharString, Asn1BigInteger, Asn1BitString, Asn1BMPString, Asn1Boolean, Asn1ChoiceExt, Asn1Integer, Asn1Null, Asn1NumericString, Asn1ObjectIdentifier, Asn1OctetString, Asn1OpenExt, Asn1OpenType, Asn1Real, Asn1RelativeOID, Asn1Time, Asn1Type, Asn1UniversalString, Asn1UTF8String, Asn1VarWidthCharString, and Asn1XerOpenType.

int Encode Asn1BerEncodeBuffer  buffer,
bool  explicitTagging
 

This method declaration is the signature of the standard Basic Encoding Rules (BER) or Distinguished Encoding Rules (DER) encode method.

Parameters:
buffer Encode message buffer object
explicitTagging Flag indicating explicit tag should be added to the encoded type.
Returns:
Length of component or negative status value

Implemented in Asn1BigInteger, Asn1BitString, Asn1BMPString, Asn1Boolean, Asn1ChoiceExt, Asn1Enumerated, Asn1GeneralizedTime, Asn1GeneralString, Asn1GraphicString, Asn1IA5String, Asn1Integer, Asn1Null, Asn1NumericString, Asn1ObjectDescriptor, Asn1ObjectIdentifier, Asn1OctetString, Asn1OpenExt, Asn1OpenType, Asn1PrintableString, Asn1Real, Asn1RelativeOID, Asn1T61String, Asn1Type, Asn1UniversalString, Asn1UTCTime, Asn1UTF8String, Asn1VideotexString, Asn1VisibleString, and Asn1XerOpenType.

bool IsOpenType  ) 
 

Returns open type mode for XML encoding/decoding.

Returns:
true if open type mode is on.

Implemented in Asn1Type.

void Print System.IO.TextWriter  outs,
System.String  varName,
int  level
 

This method declaration is the signature of the standard print method used to print the contents of the object representing the ASN.1 type.

Parameters:
outs Output print stream
varName Name of the variable being printed
level Indentation level

Implemented in Asn1Type.

void SetOpenType  ) 
 

Sets open type mode for XML encoding/decoding.

Implemented in Asn1Type.


Copyright © 1997-2005 Objective Systems,Inc.
All Rights Reserved.
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.

This file was last modified on 18 Nov 2005.
ASN1C C# Runtime Library, 5.8