public class Asn1CharOutputStream
extends java.io.Writer
Constructor and Description |
---|
Asn1CharOutputStream(java.io.Writer writer)
Create character output stream on the given Writer.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
decrLevel()
This method decrements the indentation level.
|
void |
flush() |
void |
incrLevel()
This method increments the indentation level.
|
void |
indent()
This methods indents by adding a new-line followed by whitespace
corresponding to the current nesting level to the output stream.
|
void |
setWriteWhitespace(boolean value)
Turn whitespace writing by the indent() method on/off.
|
void |
write(char[] cbuf,
int off,
int len) |
public Asn1CharOutputStream(java.io.Writer writer)
public void decrLevel()
public void incrLevel()
public void indent() throws java.io.IOException, Asn1Exception
java.io.IOException
- Any exception thrown by the underlying OutputStream.Asn1Exception
- Thrown, if operation is failed.public void setWriteWhitespace(boolean value)
value
- public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException