public class BasicResponseWriter
extends javax.faces.context.ResponseWriter
Basic implementation of javax.faces.context.ResponseWriter
for use when a content type other than text/html
is desired
(such as text/xml
).
Constructor and Description |
---|
BasicResponseWriter(Writer writer,
String contentType,
String characterEncoding)
Create a new instance configured with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
javax.faces.context.ResponseWriter |
cloneWithWriter(Writer writer) |
void |
close() |
void |
endDocument() |
void |
endElement(String name) |
void |
flush() |
String |
getCharacterEncoding() |
String |
getContentType() |
void |
startDocument() |
void |
startElement(String name,
javax.faces.component.UIComponent component) |
void |
write(char[] cbuf,
int off,
int len) |
void |
writeAttribute(String name,
Object value,
String property) |
void |
writeComment(Object comment) |
void |
writeText(char[] text,
int off,
int len) |
void |
writeText(Object text,
String property) |
void |
writeURIAttribute(String name,
Object value,
String property) |
public BasicResponseWriter(Writer writer, String contentType, String characterEncoding)
Create a new instance configured with the specified properties.
writer
- Writer
to be wrappedcontentType
- Content type of this responsecharacterEncoding
- Character encoding of thie responsepublic javax.faces.context.ResponseWriter cloneWithWriter(Writer writer)
cloneWithWriter
in class javax.faces.context.ResponseWriter
public void endDocument() throws IOException
endDocument
in class javax.faces.context.ResponseWriter
IOException
public void endElement(String name) throws IOException
endElement
in class javax.faces.context.ResponseWriter
IOException
public String getCharacterEncoding()
getCharacterEncoding
in class javax.faces.context.ResponseWriter
public String getContentType()
getContentType
in class javax.faces.context.ResponseWriter
public void flush() throws IOException
flush
in interface Flushable
flush
in class javax.faces.context.ResponseWriter
IOException
public void startDocument() throws IOException
startDocument
in class javax.faces.context.ResponseWriter
IOException
public void startElement(String name, javax.faces.component.UIComponent component) throws IOException
startElement
in class javax.faces.context.ResponseWriter
IOException
public void writeAttribute(String name, Object value, String property) throws IOException
writeAttribute
in class javax.faces.context.ResponseWriter
IOException
public void writeComment(Object comment) throws IOException
writeComment
in class javax.faces.context.ResponseWriter
IOException
public void writeText(Object text, String property) throws IOException
writeText
in class javax.faces.context.ResponseWriter
IOException
public void writeText(char[] text, int off, int len) throws IOException
writeText
in class javax.faces.context.ResponseWriter
IOException
public void writeURIAttribute(String name, Object value, String property) throws IOException
writeURIAttribute
in class javax.faces.context.ResponseWriter
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.