org.apache.cocoon.faces.renderkit
Class XMLResponseWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjavax.faces.context.ResponseWriter
          extended byorg.apache.cocoon.faces.renderkit.XMLResponseWriter

public class XMLResponseWriter
extends javax.faces.context.ResponseWriter

JSF Response Writer writing SAX events into the XMLConsumer

Version:
CVS $Id: XMLResponseWriter.java 46253 2004-09-17 14:36:29Z vgritsenko $
Author:
Vadim Gritsenko

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
XMLResponseWriter(XMLConsumer xmlConsumer, String contentType, String encoding)
           
 
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.io.Writer
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLResponseWriter

public XMLResponseWriter(XMLConsumer xmlConsumer,
                         String contentType,
                         String encoding)
                  throws javax.faces.FacesException
Method Detail

getContentType

public String getContentType()

getCharacterEncoding

public String getCharacterEncoding()

startDocument

public void startDocument()
                   throws IOException
Throws:
IOException

endDocument

public void endDocument()
                 throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

startElement

public void startElement(String name,
                         javax.faces.component.UIComponent component)
                  throws IOException
Throws:
IOException

endElement

public void endElement(String name)
                throws IOException
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

public void writeComment(Object comment)
                  throws IOException
Throws:
IOException

writeText

public void writeText(Object text,
                      String componentPropertyName)
               throws IOException
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
Throws:
IOException

cloneWithWriter

public javax.faces.context.ResponseWriter cloneWithWriter(Writer writer)

close

public void close()
           throws IOException
Throws:
IOException

write

public void write(char cbuf)
           throws IOException
Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

write

public void write(int c)
           throws IOException
Throws:
IOException

write

public void write(String str)
           throws IOException
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Throws:
IOException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.