KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > faces > context > ResponseWriter


1 /*
2  * Copyright 2004 The Apache Software Foundation.
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, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package javax.faces.context;
17
18 import javax.faces.component.UIComponent;
19 import java.io.IOException JavaDoc;
20 import java.io.Writer JavaDoc;
21
22 /**
23  * @author Manfred Geiler (latest modification by $Author: mwessendorf $)
24  * @version $Revision: 1.4 $ $Date: 2004/07/01 22:01:13 $
25  * $Log: ResponseWriter.java,v $
26  * Revision 1.4 2004/07/01 22:01:13 mwessendorf
27  * ASF switch
28  *
29  * Revision 1.3 2004/04/01 12:40:11 manolito
30  * imports instead of qualified names
31  *
32  */

33 public abstract class ResponseWriter
34         extends Writer JavaDoc
35 {
36     public abstract String JavaDoc getContentType();
37
38     public abstract String JavaDoc getCharacterEncoding();
39
40     public abstract void flush()
41             throws IOException JavaDoc;
42
43     public abstract void startDocument()
44             throws IOException JavaDoc;
45
46     public abstract void endDocument()
47             throws IOException JavaDoc;
48
49     public abstract void startElement(String JavaDoc name,
50                                       UIComponent component)
51             throws IOException JavaDoc;
52
53     public abstract void endElement(String JavaDoc name)
54             throws IOException JavaDoc;
55
56     public abstract void writeAttribute(String JavaDoc name,
57                                         Object JavaDoc value,
58                                         String JavaDoc property)
59             throws IOException JavaDoc;
60
61     public abstract void writeURIAttribute(String JavaDoc name,
62                                            Object JavaDoc value,
63                                            String JavaDoc property)
64             throws IOException JavaDoc;
65
66     public abstract void writeComment(Object JavaDoc comment)
67             throws IOException JavaDoc;
68
69     public abstract void writeText(Object JavaDoc text,
70                                    String JavaDoc property)
71             throws IOException JavaDoc;
72
73     public abstract void writeText(char[] text,
74                                    int off,
75                                    int len)
76             throws IOException JavaDoc;
77
78     public abstract ResponseWriter cloneWithWriter(Writer JavaDoc writer);
79 }
80
Popular Tags