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.

Asn1XmlOutputStream Class Reference

Inheritance diagram for Asn1XmlOutputStream:

Asn1XerOutputStream Asn1OutputStream Asn1XerEncoder List of all members.

Detailed Description

This class implements the output stream to encode ASN.1 messages as specified in the XML Encoding by the XML schema standard(generated by asn2xsd). A reference to an object of this type is passed to each of the ASN.1 type encode methods involved in encoding a particular message type.


Public Member Functions

 Asn1XmlOutputStream (System.IO.Stream os, bool canonical, int bufSize)
 Asn1XmlOutputStream (System.IO.Stream os, int bufSize)
 Asn1XmlOutputStream (System.IO.Stream os)
override void EncodeEndElement (System.String elemName)
override void EncodeNamedValueElement (System.String valueName)


Constructor & Destructor Documentation

Asn1XmlOutputStream System.IO.Stream  os  ) 
 

This constructor creates a buffered XML output stream object with default size of buffer. Whenever the buffer becomes full, the buffer will be flushed to the stream.

Parameters:
os The underlying System.IO.Stream object.

Asn1XmlOutputStream System.IO.Stream  os,
int  bufSize
 

This constructor creates a buffered XML output stream object. Whenever the buffer becomes full, the buffer will be flushed to the stream.

Parameters:
os The underlying System.IO.Stream object.
bufSize The buffer size. If it is 0 then the output stream is used as unbuffered.

Asn1XmlOutputStream System.IO.Stream  os,
bool  canonical,
int  bufSize
 

This constructor creates a buffered XML output stream object. Whenever the buffer becomes full, the buffer will be flushed to the stream.

Parameters:
os The underlying System.IO.Stream object.
canonical Boolean indicating a canonical or non-canonical encoding should be produced as defined in the X.693 standard.
bufSize The buffer size. If it is 0 then the output stream is used as unbuffered.


Member Function Documentation

override void EncodeEndElement System.String  elemName  )  [virtual]
 

This method encodes an XML end element tag

Parameters:
elemName The name of element , as String.

Reimplemented from Asn1XerOutputStream.

override void EncodeNamedValueElement System.String  valueName  )  [virtual]
 

This method encodes an XML named value element tag. Also throws C# Exceptions, If I/O error occurs.

Parameters:
valueName The named value, as String.
Exceptions:
Asn1Exception Thrown, if operation is failed.

Reimplemented from Asn1XerOutputStream.


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