Package org.eclipse.jetty.xml
Class XmlAppendable
- java.lang.Object
-
- org.eclipse.jetty.xml.XmlAppendable
-
public class XmlAppendable extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlAppendable(OutputStream out, String encoding)XmlAppendable(Appendable out)XmlAppendable(Appendable out, int indent)XmlAppendable(Appendable out, int indent, String encoding)XmlAppendable(Appendable out, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlAppendablecdata(String s)XmlAppendablecloseTag()XmlAppendablecontent(String s)voidliteral(String xml)XmlAppendableopenTag(String tag)XmlAppendableopenTag(String tag, Map<String,String> attributes)XmlAppendabletag(String tag)XmlAppendabletag(String tag, String content)XmlAppendabletag(String tag, Map<String,String> attributes)XmlAppendabletag(String tag, Map<String,String> attributes, String content)XmlAppendabletagCDATA(String tag, String data)
-
-
-
Constructor Detail
-
XmlAppendable
public XmlAppendable(OutputStream out, String encoding) throws IOException
- Throws:
IOException
-
XmlAppendable
public XmlAppendable(Appendable out) throws IOException
- Throws:
IOException
-
XmlAppendable
public XmlAppendable(Appendable out, String encoding) throws IOException
- Throws:
IOException
-
XmlAppendable
public XmlAppendable(Appendable out, int indent) throws IOException
- Throws:
IOException
-
XmlAppendable
public XmlAppendable(Appendable out, int indent, String encoding) throws IOException
- Throws:
IOException
-
-
Method Detail
-
openTag
public XmlAppendable openTag(String tag, Map<String,String> attributes) throws IOException
- Throws:
IOException
-
openTag
public XmlAppendable openTag(String tag) throws IOException
- Throws:
IOException
-
content
public XmlAppendable content(String s) throws IOException
- Throws:
IOException
-
cdata
public XmlAppendable cdata(String s) throws IOException
- Throws:
IOException
-
tag
public XmlAppendable tag(String tag) throws IOException
- Throws:
IOException
-
tag
public XmlAppendable tag(String tag, Map<String,String> attributes) throws IOException
- Throws:
IOException
-
tag
public XmlAppendable tag(String tag, String content) throws IOException
- Throws:
IOException
-
tagCDATA
public XmlAppendable tagCDATA(String tag, String data) throws IOException
- Throws:
IOException
-
tag
public XmlAppendable tag(String tag, Map<String,String> attributes, String content) throws IOException
- Throws:
IOException
-
closeTag
public XmlAppendable closeTag() throws IOException
- Throws:
IOException
-
literal
public void literal(String xml) throws IOException
- Throws:
IOException
-
-