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
29
30
31 public abstract class ResponseWriter
32 extends Writer
33 {
34 public abstract String getContentType();
35
36 public abstract String getCharacterEncoding();
37
38 public abstract void flush()
39 throws IOException;
40
41 public abstract void startDocument()
42 throws IOException;
43
44 public abstract void endDocument()
45 throws IOException;
46
47 public abstract void startElement(String name,
48 UIComponent component)
49 throws IOException;
50
51 public abstract void endElement(String name)
52 throws IOException;
53
54 public abstract void writeAttribute(String name,
55 Object value,
56 String property)
57 throws IOException;
58
59 public abstract void writeURIAttribute(String name,
60 Object value,
61 String property)
62 throws IOException;
63
64 public abstract void writeComment(Object comment)
65 throws IOException;
66
67 public abstract void writeText(Object text,
68 String property)
69 throws IOException;
70
71 public abstract void writeText(char[] text,
72 int off,
73 int len)
74 throws IOException;
75
76 public abstract ResponseWriter cloneWithWriter(Writer writer);
77
78
79
80
81 public void writeText(Object object, UIComponent component, String string) throws IOException
82 {
83 writeText(object, string);
84 }
85 }