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