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:
Closeable, Flushable, 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
 ResponseWriter cloneWithWriter(Writer writer)
           
 void close()
           
 void endCDATA()
           
 void endDocument()
           
 void endElement(String name)
           
 void flush()
           
 String getCharacterEncoding()
           
 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(String name, 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 writeText(Object object, UIComponent component, String string)
           
 void writeURIAttribute(String name, Object value, String property)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
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

cloneWithWriter

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

close

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

endCDATA

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

endDocument

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

endElement

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

flush

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

getCharacterEncoding

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

getContentType

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

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

startCDATA

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

startDocument

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

startElement

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

write

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

writeAttribute

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

writeComment

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

writeText

public void writeText(char[] text,
                      int off,
                      int len)
               throws IOException
Specified by:
writeText 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(Object object,
                      UIComponent component,
                      String string)
               throws IOException
Overrides:
writeText in class ResponseWriter
Throws:
IOException
Since:
1.2

writeURIAttribute

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


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