javax.faces.context
Class ResponseWriterWrapper

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by javax.faces.context.ResponseWriterWrapper
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable, FacesWrapper<ResponseWriter>
Direct Known Subclasses:
PartialResponseWriter

public abstract class ResponseWriterWrapper
extends ResponseWriter
implements FacesWrapper<ResponseWriter>

see Javadoc of JSF Specification

Author:
Stan Silvert

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
ResponseWriterWrapper()
           
 
Method Summary
 java.io.Writer append(char c)
           
 java.io.Writer append(java.lang.CharSequence csq)
           
 java.io.Writer append(java.lang.CharSequence csq, int start, int end)
           
 ResponseWriter cloneWithWriter(java.io.Writer writer)
           
 void close()
           
 void endCDATA()
           
 void endDocument()
           
 void endElement(java.lang.String name)
           
 void flush()
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContentType()
           
abstract  ResponseWriter getWrapped()
          A class that implements this interface uses this method to return an instance of the class being wrapped.
 void startCDATA()
           
 void startDocument()
           
 void startElement(java.lang.String name, UIComponent component)
           
 void write(char[] cbuf)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(java.lang.String str)
           
 void write(java.lang.String str, int off, int len)
           
 void writeAttribute(java.lang.String name, java.lang.Object value, java.lang.String property)
           
 void writeComment(java.lang.Object comment)
           
 void writeText(char[] text, int off, int len)
           
 void writeText(java.lang.Object text, java.lang.String property)
           
 void writeText(java.lang.Object object, UIComponent component, java.lang.String string)
           
 void writeURIAttribute(java.lang.String name, java.lang.Object value, java.lang.String property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseWriterWrapper

public ResponseWriterWrapper()
Method Detail

getWrapped

public abstract ResponseWriter getWrapped()
Description copied from interface: FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.

Specified by:
getWrapped in interface FacesWrapper<ResponseWriter>
Returns:
the instance of the class being wrapped

endElement

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

writeComment

public void writeComment(java.lang.Object comment)
                  throws java.io.IOException
Specified by:
writeComment in class ResponseWriter
Throws:
java.io.IOException

startElement

public void startElement(java.lang.String name,
                         UIComponent component)
                  throws java.io.IOException
Specified by:
startElement in class ResponseWriter
Throws:
java.io.IOException

writeText

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

writeText

public void writeText(char[] text,
                      int off,
                      int len)
               throws java.io.IOException
Specified by:
writeText in class ResponseWriter
Throws:
java.io.IOException

write

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

cloneWithWriter

public ResponseWriter cloneWithWriter(java.io.Writer writer)
Specified by:
cloneWithWriter in class ResponseWriter

writeURIAttribute

public void writeURIAttribute(java.lang.String name,
                              java.lang.Object value,
                              java.lang.String property)
                       throws java.io.IOException
Specified by:
writeURIAttribute in class ResponseWriter
Throws:
java.io.IOException

close

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

endDocument

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

flush

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

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in class ResponseWriter

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in class ResponseWriter

startDocument

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

writeAttribute

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

writeText

public void writeText(java.lang.Object object,
                      UIComponent component,
                      java.lang.String string)
               throws java.io.IOException
Overrides:
writeText in class ResponseWriter
Throws:
java.io.IOException
Since:
1.2

startCDATA

public void startCDATA()
                throws java.io.IOException
Overrides:
startCDATA in class ResponseWriter
Throws:
java.io.IOException

endCDATA

public void endCDATA()
              throws java.io.IOException
Overrides:
endCDATA in class ResponseWriter
Throws:
java.io.IOException

append

public java.io.Writer append(char c)
                      throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class java.io.Writer
Throws:
java.io.IOException

append

public java.io.Writer append(java.lang.CharSequence csq,
                             int start,
                             int end)
                      throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class java.io.Writer
Throws:
java.io.IOException

append

public java.io.Writer append(java.lang.CharSequence csq)
                      throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] cbuf)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String str)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.