Package org.bndly.common.html
Class HTMLWriter
- java.lang.Object
-
- org.bndly.common.html.HTMLWriter
-
public final class HTMLWriter extends Object
A HTMLWriter is a convenience utility to render HTML/XML Trees while allowing a partial flush of already defined elements and attributes.- Author:
- cybercon <bndly@cybercon.de>
-
-
Constructor Summary
Constructors Constructor Description HTMLWriter(Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTMLWritercloseElement()HTMLWritercontent(String value)HTMLWritercreateElement(String type)voidflush()HTMLWritersetAttribute(String name, String value)
-
-
-
Constructor Detail
-
HTMLWriter
public HTMLWriter(Writer writer)
-
-
Method Detail
-
flush
public void flush() throws IOException- Throws:
IOException
-
createElement
public final HTMLWriter createElement(String type)
-
closeElement
public final HTMLWriter closeElement()
-
setAttribute
public final HTMLWriter setAttribute(String name, String value)
-
content
public final HTMLWriter content(String value)
-
-