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