Package de.chkal.mvctoolbox.jsp
Class HtmlWriter
- java.lang.Object
-
- de.chkal.mvctoolbox.jsp.HtmlWriter
-
public class HtmlWriter extends Object
-
-
Constructor Summary
Constructors Constructor Description HtmlWriter(jakarta.servlet.jsp.JspContext context)HtmlWriter(jakarta.servlet.jsp.JspWriter writer)HtmlWriter(StringWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlWriterattribute(String name)HtmlWriterattribute(String name, Object value)HtmlWriterbeginStartTag(String name)HtmlWriterendStartTag()HtmlWriterendTag(String name)StringgetOutput()Returns the output of thewriterif possible.HtmlWriterselfClose()HtmlWriterwrite(String text)
-
-
-
Constructor Detail
-
HtmlWriter
public HtmlWriter(jakarta.servlet.jsp.JspContext context)
-
HtmlWriter
public HtmlWriter(jakarta.servlet.jsp.JspWriter writer)
-
HtmlWriter
public HtmlWriter(StringWriter writer)
-
-
Method Detail
-
beginStartTag
public HtmlWriter beginStartTag(String name) throws IOException
- Throws:
IOException
-
attribute
public HtmlWriter attribute(String name) throws IOException
- Throws:
IOException
-
attribute
public HtmlWriter attribute(String name, Object value) throws IOException
- Throws:
IOException
-
selfClose
public HtmlWriter selfClose() throws IOException
- Throws:
IOException
-
endStartTag
public HtmlWriter endStartTag() throws IOException
- Throws:
IOException
-
endTag
public HtmlWriter endTag(String name) throws IOException
- Throws:
IOException
-
write
public HtmlWriter write(String text) throws IOException
- Throws:
IOException
-
getOutput
public String getOutput()
Returns the output of thewriterif possible.- Returns:
- the output as String when
writeris aStringWriterornullin any other case
-
-