Coverage Report - org.apache.myfaces.shared.context.ResponseWriterWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
ResponseWriterWrapper
0%
0/37
N/A
1
 
 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  
 package org.apache.myfaces.shared.context;
 20  
 
 21  
 import javax.faces.component.UIComponent;
 22  
 import javax.faces.context.ResponseWriter;
 23  
 import java.io.IOException;
 24  
 import java.io.Writer;
 25  
 
 26  
 /**
 27  
  * Convenient base class for writing a ResponseWriter wrapper class.
 28  
  */
 29  
 public abstract class ResponseWriterWrapper
 30  
         extends ResponseWriter
 31  
 {
 32  
     protected ResponseWriter _responseWriter;
 33  
 
 34  
     public ResponseWriterWrapper(ResponseWriter responseWriter)
 35  0
     {
 36  0
         _responseWriter = responseWriter;
 37  0
     }
 38  
 
 39  
     public String getContentType()
 40  
     {
 41  0
         return _responseWriter.getContentType();
 42  
     }
 43  
 
 44  
     public String getCharacterEncoding()
 45  
     {
 46  0
         return _responseWriter.getCharacterEncoding();
 47  
     }
 48  
 
 49  
     public void flush() throws IOException
 50  
     {
 51  0
         _responseWriter.flush();
 52  0
     }
 53  
 
 54  
     public void startDocument() throws IOException
 55  
     {
 56  0
         _responseWriter.startDocument();
 57  0
     }
 58  
 
 59  
     public void endDocument() throws IOException
 60  
     {
 61  0
         _responseWriter.endDocument();
 62  0
     }
 63  
 
 64  
     public void startElement(String s, UIComponent uicomponent) throws IOException
 65  
     {
 66  0
         _responseWriter.startElement(s, uicomponent);
 67  0
     }
 68  
 
 69  
     public void endElement(String s) throws IOException
 70  
     {
 71  0
         _responseWriter.endElement(s);
 72  0
     }
 73  
 
 74  
     public void writeAttribute(String s, Object obj, String s1) throws IOException
 75  
     {
 76  0
         _responseWriter.writeAttribute(s, obj, s1);
 77  0
     }
 78  
 
 79  
     public void writeURIAttribute(String s, Object obj, String s1) throws IOException
 80  
     {
 81  0
         _responseWriter.writeURIAttribute(s, obj, s1);
 82  0
     }
 83  
 
 84  
     public void writeComment(Object obj) throws IOException
 85  
     {
 86  0
         _responseWriter.writeComment(obj);
 87  0
     }
 88  
 
 89  
     public void writeText(Object obj, String s) throws IOException
 90  
     {
 91  0
         _responseWriter.writeText(obj, s);
 92  0
     }
 93  
 
 94  
     public void writeText(char ac[], int i, int j) throws IOException
 95  
     {
 96  0
         _responseWriter.writeText(ac, i, j);
 97  0
     }
 98  
 
 99  
     public abstract ResponseWriter cloneWithWriter(Writer writer);
 100  
 
 101  
     public void close() throws IOException
 102  
     {
 103  0
         _responseWriter.close();
 104  0
     }
 105  
 
 106  
     public void write(char cbuf[], int off, int len) throws IOException
 107  
     {
 108  0
         _responseWriter.write(cbuf, off, len);
 109  0
     }
 110  
 
 111  
     public void write(int c) throws IOException
 112  
     {
 113  0
         _responseWriter.write(c);
 114  0
     }
 115  
 
 116  
     public void write(char cbuf[]) throws IOException
 117  
     {
 118  0
         _responseWriter.write(cbuf);
 119  0
     }
 120  
 
 121  
     public void write(String str) throws IOException
 122  
     {
 123  0
         _responseWriter.write(str);
 124  0
     }
 125  
 
 126  
     public void write(String str, int off, int len) throws IOException
 127  
     {
 128  0
         _responseWriter.write(str, off, len);
 129  0
     }
 130  
 }