public class XHTMLTagSerializer extends Object implements TagSerializer
Constructor and Description |
---|
XHTMLTagSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
characters(String text)
Writes to the inner text of a tag.
|
void |
characters(String text,
boolean encode)
Writes to the inner text of a tag
|
void |
end(String name)
Writes a tag close
|
void |
setNext(TagHandler next) |
void |
setup(TemplateRenderingContext context) |
void |
start(String name,
Attributes attrs)
Write a tag openening, with its attributes
|
protected Writer writer
public void characters(String text) throws IOException
TagHandler
characters
in interface TagHandler
text
- tag body.IOException
public void characters(String text, boolean encode) throws IOException
TagHandler
characters
in interface TagHandler
text
- tag bodyencode
- html encode the bodyIOException
public void end(String name) throws IOException
TagHandler
end
in interface TagHandler
name
- name of the tagIOException
public void setNext(TagHandler next)
setNext
in interface TagHandler
public void start(String name, Attributes attrs) throws IOException
TagHandler
start
in interface TagHandler
name
- name of the tagattrs
- attributes of the tagIOException
public void setup(TemplateRenderingContext context)
setup
in interface TagHandler
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.