org.apache.myfaces.shared_impl.context
Class ResponseWriterWrapper
java.lang.Object
   java.io.Writer
java.io.Writer
       javax.faces.context.ResponseWriter
javax.faces.context.ResponseWriter
           org.apache.myfaces.shared_impl.context.ResponseWriterWrapper
org.apache.myfaces.shared_impl.context.ResponseWriterWrapper
- All Implemented Interfaces: 
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
- public abstract class ResponseWriterWrapper 
- extends javax.faces.context.ResponseWriter
Convenient base class for writing a ResponseWriter wrapper class.
- Author:
- Manfred Geiler
 
| Fields inherited from class java.io.Writer | 
| lock | 
 
 
| Method Summary | 
| abstract  javax.faces.context.ResponseWriter | cloneWithWriter(java.io.Writer writer)
 | 
|  void | close()
 | 
|  void | endDocument()
 | 
|  void | endElement(java.lang.String s)
 | 
|  void | flush()
 | 
|  java.lang.String | getCharacterEncoding()
 | 
|  java.lang.String | getContentType()
 | 
|  void | startDocument()
 | 
|  void | startElement(java.lang.String s,
             javax.faces.component.UIComponent uicomponent)
 | 
|  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 s,
               java.lang.Object obj,
               java.lang.String s1)
 | 
|  void | writeComment(java.lang.Object obj)
 | 
|  void | writeText(char[] ac,
          int i,
          int j)
 | 
|  void | writeText(java.lang.Object obj,
          java.lang.String s)
 | 
|  void | writeURIAttribute(java.lang.String s,
                  java.lang.Object obj,
                  java.lang.String s1)
 | 
 
| Methods inherited from class java.io.Writer | 
| append, append, append | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
_responseWriter
protected javax.faces.context.ResponseWriter _responseWriter
ResponseWriterWrapper
public ResponseWriterWrapper(javax.faces.context.ResponseWriter responseWriter)
getContentType
public java.lang.String getContentType()
- 
- Specified by:
- getContentTypein class- javax.faces.context.ResponseWriter
 
- 
 
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- 
- Specified by:
- getCharacterEncodingin class- javax.faces.context.ResponseWriter
 
- 
 
flush
public void flush()
           throws java.io.IOException
- 
- Specified by:
- flushin interface- java.io.Flushable
- Specified by:
- flushin class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
startDocument
public void startDocument()
                   throws java.io.IOException
- 
- Specified by:
- startDocumentin class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
endDocument
public void endDocument()
                 throws java.io.IOException
- 
- Specified by:
- endDocumentin class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
startElement
public void startElement(java.lang.String s,
                         javax.faces.component.UIComponent uicomponent)
                  throws java.io.IOException
- 
- Specified by:
- startElementin class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
endElement
public void endElement(java.lang.String s)
                throws java.io.IOException
- 
- Specified by:
- endElementin class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
writeAttribute
public void writeAttribute(java.lang.String s,
                           java.lang.Object obj,
                           java.lang.String s1)
                    throws java.io.IOException
- 
- Specified by:
- writeAttributein class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
writeURIAttribute
public void writeURIAttribute(java.lang.String s,
                              java.lang.Object obj,
                              java.lang.String s1)
                       throws java.io.IOException
- 
- Specified by:
- writeURIAttributein class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
writeComment
public void writeComment(java.lang.Object obj)
                  throws java.io.IOException
- 
- Specified by:
- writeCommentin class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
writeText
public void writeText(java.lang.Object obj,
                      java.lang.String s)
               throws java.io.IOException
- 
- Specified by:
- writeTextin class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
writeText
public void writeText(char[] ac,
                      int i,
                      int j)
               throws java.io.IOException
- 
- Specified by:
- writeTextin class- javax.faces.context.ResponseWriter
 
- 
- Throws:
- java.io.IOException
 
cloneWithWriter
public abstract javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
- 
- Specified by:
- cloneWithWriterin class- javax.faces.context.ResponseWriter
 
- 
 
close
public void close()
           throws java.io.IOException
- 
- Specified by:
- closein interface- java.io.Closeable
- Specified by:
- closein class- java.io.Writer
 
- 
- Throws:
- java.io.IOException
 
write
public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
- 
- Specified by:
- writein class- java.io.Writer
 
- 
- Throws:
- java.io.IOException
 
write
public void write(int c)
           throws java.io.IOException
- 
- Overrides:
- writein class- java.io.Writer
 
- 
- Throws:
- java.io.IOException
 
write
public void write(char[] cbuf)
           throws java.io.IOException
- 
- Overrides:
- writein class- java.io.Writer
 
- 
- Throws:
- java.io.IOException
 
write
public void write(java.lang.String str)
           throws java.io.IOException
- 
- Overrides:
- writein 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:
- writein class- java.io.Writer
 
- 
- Throws:
- java.io.IOException
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.