ASN1C C# Runtime Library  7.2
Public Member Functions | List of all members
Asn1CharOutputStream Class Reference

Public Member Functions

 Asn1CharOutputStream (TextWriter writer)
 
void DecrLevel ()
 
void IncrLevel ()
 
void Indent ()
 
void SetWriteWhitespace (bool value)
 

Detailed Description

Base class for character-based output.

This class also aides in managing indentation. By default, the indent() method will output whitespace, but this can be disabled using setWriteWhitespace.

This class is preferable to Asn1OutputStream when character data is being written.

Constructor & Destructor Documentation

◆ Asn1CharOutputStream()

Asn1CharOutputStream ( TextWriter  writer)

Create character output stream on the given TextWriter.

Member Function Documentation

◆ DecrLevel()

void DecrLevel ( )

This method decrements the indentation level.

◆ IncrLevel()

void IncrLevel ( )

This method increments the indentation level.

◆ Indent()

void Indent ( )

This method indents by adding a new-line followed by whitespace corresponding to the current nesting level to the output stream.

◆ SetWriteWhitespace()

void SetWriteWhitespace ( bool  value)

Turn whitespace writing by the indent() method on/off.

Parameters
value