KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > context > ResponseWriterWrapper


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 org.apache.myfaces.context;
17
18 import javax.faces.component.UIComponent;
19 import javax.faces.context.ResponseWriter;
20 import java.io.IOException JavaDoc;
21 import java.io.Writer JavaDoc;
22
23 /**
24  * @author Manfred Geiler (latest modification by $Author: matze $)
25  * @version $Revision: 1.3 $ $Date: 2004/10/13 11:51:01 $
26  */

27 public abstract class ResponseWriterWrapper
28         extends ResponseWriter
29 {
30     protected ResponseWriter _responseWriter;
31
32     public ResponseWriterWrapper(ResponseWriter responseWriter)
33     {
34         _responseWriter = responseWriter;
35     }
36
37     public String JavaDoc getContentType()
38     {
39         return _responseWriter.getContentType();
40     }
41
42     public String JavaDoc getCharacterEncoding()
43     {
44         return _responseWriter.getCharacterEncoding();
45     }
46
47     public void flush() throws IOException JavaDoc
48     {
49         _responseWriter.flush();
50     }
51
52     public void startDocument() throws IOException JavaDoc
53     {
54         _responseWriter.startDocument();
55     }
56
57     public void endDocument() throws IOException JavaDoc
58     {
59         _responseWriter.endDocument();
60     }
61
62     public void startElement(String JavaDoc s, UIComponent uicomponent) throws IOException JavaDoc
63     {
64         _responseWriter.startElement(s, uicomponent);
65     }
66
67     public void endElement(String JavaDoc s) throws IOException JavaDoc
68     {
69         _responseWriter.endElement(s);
70     }
71
72     public void writeAttribute(String JavaDoc s, Object JavaDoc obj, String JavaDoc s1) throws IOException JavaDoc
73     {
74         _responseWriter.writeAttribute(s, obj, s1);
75     }
76
77     public void writeURIAttribute(String JavaDoc s, Object JavaDoc obj, String JavaDoc s1) throws IOException JavaDoc
78     {
79         _responseWriter.writeURIAttribute(s, obj, s1);
80     }
81
82     public void writeComment(Object JavaDoc obj) throws IOException JavaDoc
83     {
84         _responseWriter.writeComment(obj);
85     }
86
87     public void writeText(Object JavaDoc obj, String JavaDoc s) throws IOException JavaDoc
88     {
89         _responseWriter.writeText(obj, s);
90     }
91
92     public void writeText(char ac[], int i, int j) throws IOException JavaDoc
93     {
94         _responseWriter.writeText(ac, i, j);
95     }
96
97     public abstract ResponseWriter cloneWithWriter(Writer writer);
98
99     public void close() throws IOException JavaDoc
100     {
101         _responseWriter.close();
102     }
103
104     public void write(char cbuf[], int off, int len) throws IOException JavaDoc
105     {
106         _responseWriter.write(cbuf, off, len);
107     }
108
109     public void write(int c) throws IOException JavaDoc
110     {
111         _responseWriter.write(c);
112     }
113
114     public void write(char cbuf[]) throws IOException JavaDoc
115     {
116         _responseWriter.write(cbuf);
117     }
118
119     public void write(String JavaDoc str) throws IOException JavaDoc
120     {
121         _responseWriter.write(str);
122     }
123
124     public void write(String JavaDoc str, int off, int len) throws IOException JavaDoc
125     {
126         _responseWriter.write(str, off, len);
127     }
128 }
129
Popular Tags