Package org.eclnt.jsfserver.util
Class XMLResponseWriter
java.lang.Object
java.io.Writer
org.eclnt.jsfserver.base.faces.context.ResponseWriter
org.eclnt.jsfserver.util.XMLResponseWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Writer to an XML stream with some convenience methods.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneWithWriter(Writer writer) voidclose()voidvoidendElement(String name) voidflush()voidvoidstartElement(String name, UIComponent componentForElement) voidwrite(char cbuf) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidvoidvoidwriteAttribute(String name, Object value, String componentPropertyName) voidwriteComment(Object comment) voidwriteText(char text) voidwriteText(char[] text) voidwriteText(char[] text, int off, int len) voidvoidwriteURIAttribute(String name, Object value, String componentPropertyName)
-
Constructor Details
-
XMLResponseWriter
- Throws:
FacesException
-
-
Method Details
-
getContentType
-
getCharacterEncoding
-
startDocument
- Throws:
IOException
-
endDocument
- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classResponseWriter- Throws:
IOException
-
startElement
- Throws:
IOException
-
endElement
- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String componentPropertyName) throws IOException - Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String componentPropertyName) throws IOException - Throws:
IOException
-
writeComment
- Throws:
IOException
-
writeText
- Throws:
IOException
-
writeText
- Throws:
IOException
-
writeText
- Throws:
IOException
-
writeText
- Throws:
IOException
-
cloneWithWriter
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classResponseWriter- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Overrides:
writein classResponseWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-