Coverage Report - javax.faces.context.ResponseWriterWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
ResponseWriterWrapper
0%
0/45
N/A
0
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements.  See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership.  The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with the License.  You may obtain a copy of the License at
 9  
  *
 10  
  *   http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied.  See the License for the
 16  
  * specific language governing permissions and limitations
 17  
  * under the License.
 18  
  */
 19  
 
 20  
 package javax.faces.context;
 21  
 
 22  
 import javax.faces.component.UIComponent;
 23  
 import javax.faces.FacesWrapper;
 24  
 import java.io.IOException;
 25  
 import java.io.Writer;
 26  
 
 27  
 /**
 28  
  * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
 29  
  * 
 30  
  * @author Stan Silvert
 31  
  */
 32  0
 public abstract class ResponseWriterWrapper extends ResponseWriter implements FacesWrapper<ResponseWriter>
 33  
 {
 34  
 
 35  
     public abstract ResponseWriter getWrapped();
 36  
 
 37  
     @Override
 38  
     public void endElement(String name) throws IOException
 39  
     {
 40  0
         getWrapped().endElement(name);
 41  0
     }
 42  
 
 43  
     @Override
 44  
     public void writeComment(Object comment) throws IOException
 45  
     {
 46  0
         getWrapped().writeComment(comment);
 47  0
     }
 48  
 
 49  
     @Override
 50  
     public void startElement(String name, UIComponent component) throws IOException
 51  
     {
 52  0
         getWrapped().startElement(name, component);
 53  0
     }
 54  
 
 55  
     @Override
 56  
     public void writeText(Object text, String property) throws IOException
 57  
     {
 58  0
         getWrapped().writeText(text, property);
 59  0
     }
 60  
 
 61  
     @Override
 62  
     public void writeText(char[] text, int off, int len) throws IOException
 63  
     {
 64  0
         getWrapped().writeText(text, off, len);
 65  0
     }
 66  
 
 67  
     @Override
 68  
     public void write(char[] cbuf, int off, int len) throws IOException
 69  
     {
 70  0
         getWrapped().write(cbuf, off, len);
 71  0
     }
 72  
 
 73  
     @Override
 74  
     public ResponseWriter cloneWithWriter(Writer writer)
 75  
     {
 76  0
         return getWrapped().cloneWithWriter(writer);
 77  
     }
 78  
 
 79  
     @Override
 80  
     public void writeURIAttribute(String name, Object value, String property) throws IOException
 81  
     {
 82  0
         getWrapped().writeURIAttribute(name, value, property);
 83  0
     }
 84  
 
 85  
     @Override
 86  
     public void close() throws IOException
 87  
     {
 88  0
         getWrapped().close();
 89  0
     }
 90  
 
 91  
     @Override
 92  
     public void endDocument() throws IOException
 93  
     {
 94  0
         getWrapped().endDocument();
 95  0
     }
 96  
 
 97  
     @Override
 98  
     public void flush() throws IOException
 99  
     {
 100  0
         getWrapped().flush();
 101  0
     }
 102  
 
 103  
     @Override
 104  
     public String getCharacterEncoding()
 105  
     {
 106  0
         return getWrapped().getCharacterEncoding();
 107  
     }
 108  
 
 109  
     @Override
 110  
     public String getContentType()
 111  
     {
 112  0
         return getWrapped().getContentType();
 113  
     }
 114  
 
 115  
     @Override
 116  
     public void startDocument() throws IOException
 117  
     {
 118  0
         getWrapped().startDocument();
 119  0
     }
 120  
 
 121  
     @Override
 122  
     public void writeAttribute(String name, Object value, String property) throws IOException
 123  
     {
 124  0
         getWrapped().writeAttribute(name, value, property);
 125  0
     }
 126  
 
 127  
     /**
 128  
      * @since 1.2
 129  
      */
 130  
     @Override
 131  
     public void writeText(Object object, UIComponent component, String string) throws IOException
 132  
     {
 133  0
         getWrapped().writeText(object, component, string);
 134  0
     }
 135  
     
 136  
     @Override
 137  
     public void startCDATA() throws IOException
 138  
     {
 139  0
         getWrapped().startCDATA();
 140  0
     }
 141  
     
 142  
     @Override
 143  
     public void endCDATA() throws IOException
 144  
     {
 145  0
         getWrapped().endCDATA();
 146  0
     }
 147  
 
 148  
     @Override
 149  
     public Writer append(char c) throws IOException
 150  
     {
 151  0
         return getWrapped().append(c);
 152  
     }
 153  
 
 154  
     @Override
 155  
     public Writer append(CharSequence csq, int start, int end)
 156  
             throws IOException
 157  
     {
 158  0
         return getWrapped().append(csq, start, end);
 159  
     }
 160  
 
 161  
     @Override
 162  
     public Writer append(CharSequence csq) throws IOException
 163  
     {
 164  0
         return getWrapped().append(csq);
 165  
     }
 166  
 
 167  
     @Override
 168  
     public void write(char[] cbuf) throws IOException
 169  
     {
 170  0
         getWrapped().write(cbuf);
 171  0
     }
 172  
 
 173  
     @Override
 174  
     public void write(int c) throws IOException
 175  
     {
 176  0
         getWrapped().write(c);
 177  0
     }
 178  
 
 179  
     @Override
 180  
     public void write(String str, int off, int len) throws IOException
 181  
     {
 182  0
         getWrapped().write(str, off, len);
 183  0
     }
 184  
 
 185  
     @Override
 186  
     public void write(String str) throws IOException
 187  
     {
 188  0
         getWrapped().write(str);
 189  0
     }
 190  
 
 191  
 }