public class NestedMarkupWriterImpl extends MarkupWriterImpl implements NestedMarkupWriter
IMarkupWriter
. Accumulates content in a
CharArrayWriter
, and prints the buffered content (raw) on close()
.IMarkupWriter.getNestedWriter()
Constructor and Description |
---|
NestedMarkupWriterImpl(IMarkupWriter parent,
MarkupFilter filter) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the internal
CharArrayWriter , then captures its content and invokes
IMarkupWriter.printRaw(String) on the parent markup writer
(the writer that created this writer). |
java.lang.String |
getBuffer()
Returns any makrup so far accumulated by the nested markup writer.
|
attribute, attribute, attribute, attribute, attributeRaw, begin, beginEmpty, checkError, closeTag, comment, end, end, flush, getContentType, getNestedWriter, print, print, print, print, print, print, println, printRaw, printRaw
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attribute, attribute, attribute, attributeRaw, begin, beginEmpty, checkError, closeTag, comment, end, end, flush, getContentType, getNestedWriter, print, print, print, print, print, print, println, printRaw, printRaw
public NestedMarkupWriterImpl(IMarkupWriter parent, MarkupFilter filter)
public java.lang.String getBuffer()
NestedMarkupWriter
IMarkupWriter.printRaw(String)
,
with this content, on its parent markup writer.
Getting the buffer will close the writer.
getBuffer
in interface NestedMarkupWriter
public void close()
CharArrayWriter
, then captures its content and invokes
IMarkupWriter.printRaw(String)
on the parent markup writer
(the writer that created this writer).close
in interface IMarkupWriter
close
in class MarkupWriterImpl