| java.lang.Object java.io.Writer java.io.PrintWriter com.caucho.vfs.XmlWriter
Inner Class :abstract public static class Strategy | |
Inner Class :public static class Xml extends Strategy | |
Inner Class :public static class Xhtml extends Xml | |
Inner Class :public static class Html extends Xhtml | |
Field Summary | |
final public static Strategy | HTML | final public static Strategy | XHTML | final public static Strategy | XML |
Method Summary | |
public void | endBlockElement(String name) End an element where the opening tag is on it's own line, the content
is on it's own line, and the closing tag is on it's own line. | public void | endElement(String name) End an element. | public void | endLineElement(String name) End an element where the opening tag, content, and closing tags are on
a single line of their own. | public void | flush() Close an open element (if any), then flush the underlying
writer. | public String | getCharacterEncoding() | public String | getContentType() | public boolean | isIndenting() | public boolean | isNewLine() | public void | println() | public void | setCharacterEncoding(String characterEncoding) Default is "UTF-8". | public void | setContentType(String contentType) Default is "text/xml". | public void | setIndenting(boolean isIndenting) | public void | setStrategy(Strategy strategy) | public boolean | softPrintln() | public void | startBlockElement(String name) Start an element where the opening tag is on it's own line, the content
is on it's own line, and the closing tag is on it's own line. | public void | startElement(String name) Start an element. | public void | startLineElement(String name) Start an element where the opening tag, content, and closing tags are on
a single line of their own. | public void | write(int ch) | public void | write(char buf, int off, int len) | public void | write(char buf) | public void | write(String s, int off, int len) | public void | write(String s) | public void | writeAttribute(String name, Object value) Write an attribute with a value, if value is null nothing is written. | public void | writeAttribute(String name, Object... values) Write an attribute with multiple values, separated by space, if a value
is null nothing is written. | public void | writeBlockElement(String name) Convenience method, same as doing a startBlockElement() and then immediately
doing an endBlockElement(). | public void | writeBlockElement(String name, Object text) Convenience method, same as doing a startBlockElement(), writeText(text),
endBlockElement(). | public void | writeComment(String comment) Close an open element (if any), then write with escaping as needed. | public void | writeElement(String name) Convenience method, same as doing a startElement() and then immediately
doing an endElement(). | public void | writeElement(String name, Object text) Convenience method, same as doing a startElement(), writeText(text),
endElement(). | public void | writeLineElement(String name) Convenience method, same as doing a startLineElement() and then immediately
doing an endLineElement(). | public void | writeLineElement(String name, Object text) Convenience method, same as doing a startLineElement(), writeText(text),
endLineElement(). | public void | writeText(char ch) Close an open element (if any), then write with escaping as needed. | public void | writeText(char[] buf) Close an open element (if any), then write with escaping as needed. | public void | writeText(char[] buf, int offset, int length) Close an open element (if any), then write with escaping as needed. | public void | writeText(Object obj) Close an open element (if any), then write object.toString(), with escaping
as needed. |
HTML | final public static Strategy HTML(Code) | | |
XHTML | final public static Strategy XHTML(Code) | | |
XML | final public static Strategy XML(Code) | | |
endBlockElement | public void endBlockElement(String name)(Code) | | End an element where the opening tag is on it's own line, the content
is on it's own line, and the closing tag is on it's own line.
|
endElement | public void endElement(String name)(Code) | | End an element.
|
endLineElement | public void endLineElement(String name)(Code) | | End an element where the opening tag, content, and closing tags are on
a single line of their own.
|
flush | public void flush()(Code) | | Close an open element (if any), then flush the underlying
writer.
|
getCharacterEncoding | public String getCharacterEncoding()(Code) | | |
isIndenting | public boolean isIndenting()(Code) | | |
isNewLine | public boolean isNewLine()(Code) | | |
println | public void println()(Code) | | |
setCharacterEncoding | public void setCharacterEncoding(String characterEncoding)(Code) | | Default is "UTF-8".
|
setContentType | public void setContentType(String contentType)(Code) | | Default is "text/xml".
|
setIndenting | public void setIndenting(boolean isIndenting)(Code) | | |
setStrategy | public void setStrategy(Strategy strategy)(Code) | | |
softPrintln | public boolean softPrintln()(Code) | | |
startBlockElement | public void startBlockElement(String name)(Code) | | Start an element where the opening tag is on it's own line, the content
is on it's own line, and the closing tag is on it's own line.
|
startElement | public void startElement(String name)(Code) | | Start an element.
|
startLineElement | public void startLineElement(String name)(Code) | | Start an element where the opening tag, content, and closing tags are on
a single line of their own.
|
write | public void write(int ch)(Code) | | |
write | public void write(char buf, int off, int len)(Code) | | |
write | public void write(char buf)(Code) | | |
writeAttribute | public void writeAttribute(String name, Object value)(Code) | | Write an attribute with a value, if value is null nothing is written.
throws: IllegalStateException - if the is no element is open |
writeAttribute | public void writeAttribute(String name, Object... values)(Code) | | Write an attribute with multiple values, separated by space, if a value
is null nothing is written.
throws: IllegalStateException - if the is no element is open |
writeBlockElement | public void writeBlockElement(String name)(Code) | | Convenience method, same as doing a startBlockElement() and then immediately
doing an endBlockElement().
|
writeBlockElement | public void writeBlockElement(String name, Object text)(Code) | | Convenience method, same as doing a startBlockElement(), writeText(text),
endBlockElement().
|
writeComment | public void writeComment(String comment)(Code) | | Close an open element (if any), then write with escaping as needed.
|
writeElement | public void writeElement(String name)(Code) | | Convenience method, same as doing a startElement() and then immediately
doing an endElement().
|
writeElement | public void writeElement(String name, Object text)(Code) | | Convenience method, same as doing a startElement(), writeText(text),
endElement().
|
writeLineElement | public void writeLineElement(String name)(Code) | | Convenience method, same as doing a startLineElement() and then immediately
doing an endLineElement().
|
writeLineElement | public void writeLineElement(String name, Object text)(Code) | | Convenience method, same as doing a startLineElement(), writeText(text),
endLineElement().
|
writeText | public void writeText(char ch)(Code) | | Close an open element (if any), then write with escaping as needed.
|
writeText | public void writeText(char[] buf)(Code) | | Close an open element (if any), then write with escaping as needed.
|
writeText | public void writeText(char[] buf, int offset, int length)(Code) | | Close an open element (if any), then write with escaping as needed.
|
writeText | public void writeText(Object obj)(Code) | | Close an open element (if any), then write object.toString(), with escaping
as needed.
|
Methods inherited from java.io.PrintWriter | public PrintWriter append(CharSequence csq)(Code)(Java Doc) public PrintWriter append(CharSequence csq, int start, int end)(Code)(Java Doc) public PrintWriter append(char c)(Code)(Java Doc) public boolean checkError()(Code)(Java Doc) protected void clearError()(Code)(Java Doc) public void close()(Code)(Java Doc) public void flush()(Code)(Java Doc) public PrintWriter format(String format, Object... args)(Code)(Java Doc) public PrintWriter format(Locale l, String format, Object... args)(Code)(Java Doc) public void print(boolean b)(Code)(Java Doc) public void print(char c)(Code)(Java Doc) public void print(int i)(Code)(Java Doc) public void print(long l)(Code)(Java Doc) public void print(float f)(Code)(Java Doc) public void print(double d)(Code)(Java Doc) public void print(char s)(Code)(Java Doc) public void print(String s)(Code)(Java Doc) public void print(Object obj)(Code)(Java Doc) public PrintWriter printf(String format, Object... args)(Code)(Java Doc) public PrintWriter printf(Locale l, String format, Object... args)(Code)(Java Doc) public void println()(Code)(Java Doc) public void println(boolean x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(int x)(Code)(Java Doc) public void println(long x)(Code)(Java Doc) public void println(float x)(Code)(Java Doc) public void println(double x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(String x)(Code)(Java Doc) public void println(Object x)(Code)(Java Doc) protected void setError()(Code)(Java Doc) public void write(int c)(Code)(Java Doc) public void write(char buf, int off, int len)(Code)(Java Doc) public void write(char buf)(Code)(Java Doc) public void write(String s, int off, int len)(Code)(Java Doc) public void write(String s)(Code)(Java Doc)
|
|
|