1 16 package org.apache.myfaces.context; 17 18 import javax.faces.component.UIComponent; 19 import javax.faces.context.ResponseWriter; 20 import java.io.IOException ; 21 import java.io.Writer ; 22 23 27 public abstract class ResponseWriterWrapper 28 extends ResponseWriter 29 { 30 protected ResponseWriter _responseWriter; 31 32 public ResponseWriterWrapper(ResponseWriter responseWriter) 33 { 34 _responseWriter = responseWriter; 35 } 36 37 public String getContentType() 38 { 39 return _responseWriter.getContentType(); 40 } 41 42 public String getCharacterEncoding() 43 { 44 return _responseWriter.getCharacterEncoding(); 45 } 46 47 public void flush() throws IOException 48 { 49 _responseWriter.flush(); 50 } 51 52 public void startDocument() throws IOException 53 { 54 _responseWriter.startDocument(); 55 } 56 57 public void endDocument() throws IOException 58 { 59 _responseWriter.endDocument(); 60 } 61 62 public void startElement(String s, UIComponent uicomponent) throws IOException 63 { 64 _responseWriter.startElement(s, uicomponent); 65 } 66 67 public void endElement(String s) throws IOException 68 { 69 _responseWriter.endElement(s); 70 } 71 72 public void writeAttribute(String s, Object obj, String s1) throws IOException 73 { 74 _responseWriter.writeAttribute(s, obj, s1); 75 } 76 77 public void writeURIAttribute(String s, Object obj, String s1) throws IOException 78 { 79 _responseWriter.writeURIAttribute(s, obj, s1); 80 } 81 82 public void writeComment(Object obj) throws IOException 83 { 84 _responseWriter.writeComment(obj); 85 } 86 87 public void writeText(Object obj, String s) throws IOException 88 { 89 _responseWriter.writeText(obj, s); 90 } 91 92 public void writeText(char ac[], int i, int j) throws IOException 93 { 94 _responseWriter.writeText(ac, i, j); 95 } 96 97 public abstract ResponseWriter cloneWithWriter(Writer writer); 98 99 public void close() throws IOException 100 { 101 _responseWriter.close(); 102 } 103 104 public void write(char cbuf[], int off, int len) throws IOException 105 { 106 _responseWriter.write(cbuf, off, len); 107 } 108 109 public void write(int c) throws IOException 110 { 111 _responseWriter.write(c); 112 } 113 114 public void write(char cbuf[]) throws IOException 115 { 116 _responseWriter.write(cbuf); 117 } 118 119 public void write(String str) throws IOException 120 { 121 _responseWriter.write(str); 122 } 123 124 public void write(String str, int off, int len) throws IOException 125 { 126 _responseWriter.write(str, off, len); 127 } 128 } 129 | Popular Tags |