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