|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer com.objsys.asn1j.runtime.Asn1CharOutputStream
public class Asn1CharOutputStream
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.
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
Asn1CharOutputStream(java.io.Writer writer)
Create character output stream on the given Writer. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Asn1CharOutputStream(java.io.Writer writer)
Method Detail |
---|
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 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |