1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
package javax.faces.context; |
21 | |
|
22 | |
import javax.faces.component.UIComponent; |
23 | |
import java.io.IOException; |
24 | |
import java.io.Writer; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 0 | public abstract class ResponseWriterWrapper extends ResponseWriter { |
32 | |
|
33 | |
protected abstract ResponseWriter getWrapped(); |
34 | |
|
35 | |
public void endElement(String name) throws IOException { |
36 | 0 | getWrapped().endElement(name); |
37 | 0 | } |
38 | |
|
39 | |
public void writeComment(Object comment) throws IOException { |
40 | 0 | getWrapped().writeComment(comment); |
41 | 0 | } |
42 | |
|
43 | |
public void startElement(String name, UIComponent component) throws IOException { |
44 | 0 | getWrapped().startElement(name, component); |
45 | 0 | } |
46 | |
|
47 | |
public void writeText(Object text, String property) throws IOException { |
48 | 0 | getWrapped().writeText(text, property); |
49 | 0 | } |
50 | |
|
51 | |
public void writeText(char[] text, int off, int len) throws IOException { |
52 | 0 | getWrapped().writeText(text, off, len); |
53 | 0 | } |
54 | |
|
55 | |
public void write(char[] cbuf, int off, int len) throws IOException { |
56 | 0 | getWrapped().write(cbuf, off, len); |
57 | 0 | } |
58 | |
|
59 | |
public ResponseWriter cloneWithWriter(Writer writer) { |
60 | 0 | return getWrapped().cloneWithWriter(writer); |
61 | |
} |
62 | |
|
63 | |
public void writeURIAttribute(String name, Object value, String property) throws IOException { |
64 | 0 | getWrapped().writeURIAttribute(name, value,property); |
65 | 0 | } |
66 | |
|
67 | |
public void close() throws IOException { |
68 | 0 | getWrapped().close(); |
69 | 0 | } |
70 | |
|
71 | |
public void endDocument() throws IOException { |
72 | 0 | getWrapped().endDocument(); |
73 | 0 | } |
74 | |
|
75 | |
public void flush() throws IOException { |
76 | 0 | getWrapped().flush(); |
77 | 0 | } |
78 | |
|
79 | |
public String getCharacterEncoding() { |
80 | 0 | return getWrapped().getCharacterEncoding(); |
81 | |
} |
82 | |
|
83 | |
public String getContentType() { |
84 | 0 | return getWrapped().getContentType(); |
85 | |
} |
86 | |
|
87 | |
public void startDocument() throws IOException { |
88 | 0 | getWrapped().startDocument(); |
89 | 0 | } |
90 | |
|
91 | |
public void writeAttribute(String name, Object value, String property) throws IOException { |
92 | 0 | getWrapped().writeAttribute(name, value, property); |
93 | 0 | } |
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
public void writeText(Object object, UIComponent component, String string) throws IOException |
99 | |
{ |
100 | 0 | getWrapped().writeText(object, component, string); |
101 | 0 | } |
102 | |
|
103 | |
} |