Coverage Report - javax.faces.context.ResponseWriter
 
Classes in this File Line Coverage Branch Coverage Complexity
ResponseWriter
0%
0/7
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  
 package javax.faces.context;
 20  
 
 21  
 import javax.faces.component.UIComponent;
 22  
 import java.io.IOException;
 23  
 import java.io.Writer;
 24  
 
 25  
 /**
 26  
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
 27  
  * 
 28  
  * @author Manfred Geiler (latest modification by $Author: baranda $)
 29  
  * @version $Revision: 966679 $ $Date: 2010-07-22 09:21:46 -0500 (Thu, 22 Jul 2010) $
 30  
  */
 31  0
 public abstract class ResponseWriter extends Writer
 32  
 {
 33  
     public abstract String getContentType();
 34  
 
 35  
     public abstract String getCharacterEncoding();
 36  
 
 37  
     @Override
 38  
     public abstract void flush() throws IOException;
 39  
 
 40  
     public abstract void startDocument() throws IOException;
 41  
 
 42  
     public abstract void endDocument() throws IOException;
 43  
 
 44  
     public abstract void startElement(String name, UIComponent component) throws IOException;
 45  
 
 46  
     public abstract void endElement(String name) throws IOException;
 47  
     
 48  
     public void startCDATA() throws IOException
 49  
     {
 50  0
         write ("<![CDATA[");
 51  0
     }
 52  
     
 53  
     public void endCDATA() throws IOException
 54  
     {
 55  0
         write ("]]>");
 56  0
     }
 57  
     
 58  
     public abstract void writeAttribute(String name, Object value, String property) throws IOException;
 59  
 
 60  
     public abstract void writeURIAttribute(String name, Object value, String property) throws IOException;
 61  
 
 62  
     public abstract void writeComment(Object comment) throws IOException;
 63  
 
 64  
     public abstract void writeText(Object text, String property) throws IOException;
 65  
 
 66  
     public abstract void writeText(char[] text, int off, int len) throws IOException;
 67  
 
 68  
     public abstract ResponseWriter cloneWithWriter(Writer writer);
 69  
 
 70  
     /**
 71  
      * @since 1.2
 72  
      */
 73  
     public void writeText(Object object, UIComponent component, String string) throws IOException
 74  
     {
 75  0
         writeText(object, string);
 76  0
     }
 77  
 }