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 | ( | TextWriter | writer | ) |
Create character output stream on the given TextWriter.
Member Function Documentation
void DecrLevel | ( | ) |
This method decrements the indentation level.
void IncrLevel | ( | ) |
This method increments the indentation level.
void Indent | ( | ) |
This method indents by adding a new-line followed by whitespace corresponding to the current nesting level to the output stream.
void SetWriteWhitespace | ( | bool | value | ) |
Turn whitespace writing by the indent() method on/off.
- Parameters:
-
value