org.apache.myfaces.tobago.webapp
Class TobagoResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.apache.myfaces.tobago.webapp.TobagoResponseWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class TobagoResponseWriter
extends ResponseWriter


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TobagoResponseWriter(Writer writer, String contentType, String characterEncoding)
           
 
Method Summary
 ResponseWriter cloneWithWriter(Writer originalWriter)
           
 void close()
           
 void endDocument()
           
 void endElement(String name)
           
 void flush()
           
 String getCharacterEncoding()
           
 String getContentType()
           
 void startDocument()
           
 void startElement(String name)
           
 void startElement(String name, UIComponent currentComponent)
           
 void write(char[] cbuf, int off, int len)
           
 void write(String str)
           
 void writeAttribute(String name, boolean on)
           
 void writeAttribute(String name, Object value, boolean escape)
           
 void writeAttribute(String name, Object value, String property)
           
 void writeAttribute(String name, Object value, String property, boolean escape)
           
 void writeAttribute(String name, String value, boolean escape)
           
 void writeClassAttribute(String id)
           
 void writeComment(Object obj)
           
 void writeComponentAttribute(String name, String property)
           
 void writeComponentClass()
           
 void writeIdAttribute(String id)
           
 void writeNameAttribute(String id)
           
 void writeText(char[] text, int offset, int length)
           
 void writeText(Object text, String property)
           
 void writeURIAttribute(String s, Object obj, String s1)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TobagoResponseWriter

public TobagoResponseWriter(Writer writer,
                            String contentType,
                            String characterEncoding)
Method Detail

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

write

public void write(String str)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in class ResponseWriter
Throws:
IOException

writeText

public void writeText(Object text,
                      String property)
               throws IOException
Specified by:
writeText in class ResponseWriter
Throws:
IOException

writeText

public void writeText(char[] text,
                      int offset,
                      int length)
               throws IOException
Specified by:
writeText in class ResponseWriter
Throws:
IOException

startDocument

public void startDocument()
                   throws IOException
Specified by:
startDocument in class ResponseWriter
Throws:
IOException

endDocument

public void endDocument()
                 throws IOException
Specified by:
endDocument in class ResponseWriter
Throws:
IOException

getContentType

public String getContentType()
Specified by:
getContentType in class ResponseWriter

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in class ResponseWriter

startElement

public void startElement(String name)
                  throws IOException
Throws:
IOException

startElement

public void startElement(String name,
                         UIComponent currentComponent)
                  throws IOException
Specified by:
startElement in class ResponseWriter
Throws:
IOException

endElement

public void endElement(String name)
                throws IOException
Specified by:
endElement in class ResponseWriter
Throws:
IOException

writeComment

public void writeComment(Object obj)
                  throws IOException
Specified by:
writeComment in class ResponseWriter
Throws:
IOException

cloneWithWriter

public ResponseWriter cloneWithWriter(Writer originalWriter)
Specified by:
cloneWithWriter in class ResponseWriter

writeAttribute

public void writeAttribute(String name,
                           boolean on)
                    throws IOException
Throws:
IOException

writeComponentAttribute

public void writeComponentAttribute(String name,
                                    String property)
                             throws IOException
Throws:
IOException

writeAttribute

public void writeAttribute(String name,
                           Object value,
                           String property)
                    throws IOException
Specified by:
writeAttribute in class ResponseWriter
Throws:
IOException

writeAttribute

public void writeAttribute(String name,
                           Object value,
                           boolean escape)
                    throws IOException
Throws:
IOException

writeAttribute

public void writeAttribute(String name,
                           String value,
                           boolean escape)
                    throws IOException
Throws:
IOException

writeAttribute

public void writeAttribute(String name,
                           Object value,
                           String property,
                           boolean escape)
                    throws IOException
Throws:
IOException

writeIdAttribute

public void writeIdAttribute(String id)
                      throws IOException
Throws:
IOException

writeNameAttribute

public void writeNameAttribute(String id)
                        throws IOException
Throws:
IOException

writeClassAttribute

public void writeClassAttribute(String id)
                         throws IOException
Throws:
IOException

writeComponentClass

public void writeComponentClass()
                         throws IOException
Throws:
IOException

writeURIAttribute

public void writeURIAttribute(String s,
                              Object obj,
                              String s1)
                       throws IOException
Specified by:
writeURIAttribute in class ResponseWriter
Throws:
IOException


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.