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.

Asn1TaggedEventHandler Interface Reference

Inheritance diagram for Asn1TaggedEventHandler:

Asn1BerMessageDumpHandler List of all members.

Detailed Description

This interface defines the methods that must be implemented to define
a SAX-like event handler. These methods are invoked from within the generated C# decode logic when significant events occur during the parsing of an ASN.1 message.
A tagged event handler differs from a named event handler in
that it returns the tags from within a BER or DER message instead of the symbolic names. This type of handler can be used to generically parse a message without knowledge of the associated ASN.1 schema definition. It is used in conjunction with the Asn1BerDecodeBuffer Parse method.


Public Member Functions

void Contents (byte[] data)
void EndElement (Asn1Tag tag)
void StartElement (Asn1Tag tag, int len, byte[] tagLenBytes)


Member Function Documentation

void Contents byte[]  data  ) 
 

The contents callback method is invoked when the contents of a primitive data element are parsed.

Parameters:
data Array containing encoded contents bytes.

Implemented in Asn1BerMessageDumpHandler.

void EndElement Asn1Tag  tag  ) 
 

The endElement callback method is invoked when the end of a tagged element is parsed.

Parameters:
tag Parsed tag value.

Implemented in Asn1BerMessageDumpHandler.

void StartElement Asn1Tag  tag,
int  len,
byte[]  tagLenBytes
 

The StartElement callback method is invoked when the start of any tagged element is parsed.

Parameters:
tag Parsed tag value.
len Parsed length value
tagLenBytes Array containing the encoded bytes that make up the tag/length sequence.

Implemented in Asn1BerMessageDumpHandler.


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