org.apache.cocoon.faces.renderkit
Class XMLResponseWriter
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
org.apache.cocoon.faces.renderkit.XMLResponseWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class XMLResponseWriter
- extends javax.faces.context.ResponseWriter
JSF Response Writer writing SAX events into the XMLConsumer
- Version:
- CVS $Id: XMLResponseWriter.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Vadim Gritsenko
Method Summary |
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)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int c)
|
void |
write(String str)
|
void |
write(String str,
int off,
int len)
|
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 |
writeText(Object text,
String componentPropertyName)
|
void |
writeURIAttribute(String name,
Object value,
String componentPropertyName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLResponseWriter
public XMLResponseWriter(XMLConsumer xmlConsumer,
String contentType,
String encoding)
throws javax.faces.FacesException
- Throws:
javax.faces.FacesException
getContentType
public String getContentType()
- Specified by:
getContentType
in class javax.faces.context.ResponseWriter
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in class javax.faces.context.ResponseWriter
startDocument
public void startDocument()
throws IOException
- Specified by:
startDocument
in class javax.faces.context.ResponseWriter
- Throws:
IOException
endDocument
public void endDocument()
throws IOException
- Specified by:
endDocument
in class javax.faces.context.ResponseWriter
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class javax.faces.context.ResponseWriter
- Throws:
IOException
startElement
public void startElement(String name,
javax.faces.component.UIComponent component)
throws IOException
- Specified by:
startElement
in class javax.faces.context.ResponseWriter
- Throws:
IOException
endElement
public void endElement(String name)
throws IOException
- Specified by:
endElement
in class javax.faces.context.ResponseWriter
- Throws:
IOException
writeAttribute
public void writeAttribute(String name,
Object value,
String componentPropertyName)
throws IOException
- Specified by:
writeAttribute
in class javax.faces.context.ResponseWriter
- Throws:
IOException
writeURIAttribute
public void writeURIAttribute(String name,
Object value,
String componentPropertyName)
throws IOException
- Specified by:
writeURIAttribute
in class javax.faces.context.ResponseWriter
- Throws:
IOException
writeComment
public void writeComment(Object comment)
throws IOException
- Specified by:
writeComment
in class javax.faces.context.ResponseWriter
- Throws:
IOException
writeText
public void writeText(Object text,
String componentPropertyName)
throws IOException
- Specified by:
writeText
in class javax.faces.context.ResponseWriter
- Throws:
IOException
writeText
public void writeText(char text)
throws IOException
- Throws:
IOException
writeText
public void writeText(char[] text)
throws IOException
- Throws:
IOException
writeText
public void writeText(char[] text,
int off,
int len)
throws IOException
- Specified by:
writeText
in class javax.faces.context.ResponseWriter
- Throws:
IOException
cloneWithWriter
public javax.faces.context.ResponseWriter cloneWithWriter(Writer writer)
- Specified by:
cloneWithWriter
in class javax.faces.context.ResponseWriter
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
- Throws:
IOException
write
public void write(char cbuf)
throws IOException
- Throws:
IOException
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
write
in class Writer
- Throws:
IOException
write
public void write(int c)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String str)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String str,
int off,
int len)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.