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