01: /*
02: * Copyright 2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package javax.faces.context;
17:
18: import javax.faces.component.UIComponent;
19: import java.io.IOException;
20: import java.io.Writer;
21:
22: /**
23: * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
24: *
25: * @author Manfred Geiler (latest modification by $Author: mbr $)
26: * @version $Revision: 512227 $ $Date: 2007-02-27 13:25:16 +0100 (Di, 27 Feb 2007) $
27: */
28: public abstract class ResponseWriter extends Writer {
29: public abstract String getContentType();
30:
31: public abstract String getCharacterEncoding();
32:
33: public abstract void flush() throws IOException;
34:
35: public abstract void startDocument() throws IOException;
36:
37: public abstract void endDocument() throws IOException;
38:
39: public abstract void startElement(String name, UIComponent component)
40: throws IOException;
41:
42: public abstract void endElement(String name) throws IOException;
43:
44: public abstract void writeAttribute(String name, Object value,
45: String property) throws IOException;
46:
47: public abstract void writeURIAttribute(String name, Object value,
48: String property) throws IOException;
49:
50: public abstract void writeComment(Object comment)
51: throws IOException;
52:
53: public abstract void writeText(Object text, String property)
54: throws IOException;
55:
56: public abstract void writeText(char[] text, int off, int len)
57: throws IOException;
58:
59: public abstract ResponseWriter cloneWithWriter(Writer writer);
60:
61: /**
62: * @since 1.2
63: */
64: public void writeText(Object object, UIComponent component,
65: String string) throws IOException {
66: writeText(object, string);
67: }
68: }
|