Package org.eclnt.jsfserver.util
Class XMLResponseWriter
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
org.eclnt.jsfserver.util.XMLResponseWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class XMLResponseWriter
extends javax.faces.context.ResponseWriter
Writer to an XML stream with some convenience methods.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.faces.context.ResponseWriter
cloneWithWriter
(Writer writer) void
close()
void
void
endElement
(String name) void
flush()
void
void
startElement
(String name, javax.faces.component.UIComponent componentForElement) void
write
(char cbuf) void
write
(char[] cbuf, int off, int len) void
write
(int c) void
void
void
writeAttribute
(String name, Object value, String componentPropertyName) void
writeComment
(Object comment) void
writeText
(char text) void
writeText
(char[] text) void
writeText
(char[] text, int off, int len) void
void
writeURIAttribute
(String name, Object value, String componentPropertyName) Methods inherited from class javax.faces.context.ResponseWriter
endCDATA, startCDATA, writeDoctype, writePreamble, writeText
-
Constructor Details
-
XMLResponseWriter
- Throws:
javax.faces.FacesException
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in classjavax.faces.context.ResponseWriter
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in classjavax.faces.context.ResponseWriter
-
startDocument
- Specified by:
startDocument
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
endDocument
- Specified by:
endDocument
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
startElement
public void startElement(String name, javax.faces.component.UIComponent componentForElement) throws IOException - Specified by:
startElement
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
endElement
- Specified by:
endElement
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String componentPropertyName) throws IOException - Specified by:
writeAttribute
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String componentPropertyName) throws IOException - Specified by:
writeURIAttribute
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
writeComment
- Specified by:
writeComment
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
writeText
- Specified by:
writeText
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
writeText
- Throws:
IOException
-
writeText
- Throws:
IOException
-
writeText
- Specified by:
writeText
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
cloneWithWriter
- Specified by:
cloneWithWriter
in classjavax.faces.context.ResponseWriter
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-