A streaming markup writer. Encodes characters and CDATA. Provides only basic state validation, and some simple indentation.
This class also is-a Writer, and any characters written to this writer will be encoded as appropriate. Note, however, that calling close() on this object does not close the backing stream.
| Constructor and description | 
|---|
                                protected SimpleMarkupWriter
                                (Writer writer, String indent) | 
                        
| Type | Name and description | 
|---|---|
SimpleMarkupWriter | 
                            attribute(String name, String value) | 
                        
SimpleMarkupWriter | 
                            characters(char[] characters) | 
                        
SimpleMarkupWriter | 
                            characters(char[] characters, int start, int count) | 
                        
SimpleMarkupWriter | 
                            characters(CharSequence characters) | 
                        
void | 
                            close() | 
                        
SimpleMarkupWriter | 
                            endCDATA() | 
                        
SimpleMarkupWriter | 
                            endElement() | 
                        
void | 
                            flush() | 
                        
SimpleMarkupWriter | 
                            startCDATA() | 
                        
SimpleMarkupWriter | 
                            startElement(String name) | 
                        
void | 
                            write(char[] chars, int offset, int length) | 
                        
protected void | 
                            writeRaw(String message) | 
                        
| Methods inherited from class | Name | 
|---|---|
class Writer | 
                            append, append, append, append, append, append, write, write, write, write, write, flush, close, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll | 
                        
class Object | 
                            wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |