Coverage Report - javax.faces.internal.PageContextOutWriter
 
Classes in this File Line Coverage Branch Coverage Complexity
PageContextOutWriter
0%
0/18
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package javax.faces.internal;
 17  
 
 18  
 import java.io.IOException;
 19  
 import java.io.Writer;
 20  
 
 21  
 import javax.servlet.jsp.PageContext;
 22  
 
 23  
 /**
 24  
  * @author shot
 25  
  *
 26  
  * This class might be changed without notice. Please do not use it
 27  
  * excluding the JSF specification part.
 28  
  */
 29  
 public class PageContextOutWriter extends Writer {
 30  
 
 31  
     private PageContext pageContext;
 32  
 
 33  0
     public PageContextOutWriter(PageContext pageContext) {
 34  0
         this.pageContext = pageContext;
 35  0
     }
 36  
 
 37  
     public void close() throws IOException {
 38  0
         pageContext.getOut().close();
 39  0
     }
 40  
 
 41  
     public void flush() throws IOException {
 42  0
         pageContext.getOut().flush();
 43  0
     }
 44  
 
 45  
     public void write(char cbuf[], int off, int len) throws IOException {
 46  0
         pageContext.getOut().write(cbuf, off, len);
 47  0
     }
 48  
 
 49  
     public void write(int c) throws IOException {
 50  0
         pageContext.getOut().write(c);
 51  0
     }
 52  
 
 53  
     public void write(char cbuf[]) throws IOException {
 54  0
         pageContext.getOut().write(cbuf);
 55  0
     }
 56  
 
 57  
     public void write(String str) throws IOException {
 58  0
         pageContext.getOut().write(str);
 59  0
     }
 60  
 
 61  
     public void write(String str, int off, int len) throws IOException {
 62  0
         pageContext.getOut().write(str, off, len);
 63  0
     }
 64  
 
 65  
     protected PageContext getPageContext() {
 66  0
         return pageContext;
 67  
     }
 68  
 }