1 16 package javax.faces.webapp; 17 18 import javax.servlet.jsp.PageContext ; 19 import java.io.IOException ; 20 import java.io.Writer ; 21 22 28 public class _PageContextOutWriter 29 extends Writer 30 { 31 private PageContext _pageContext; 32 33 public _PageContextOutWriter(PageContext pageContext) 34 { 35 _pageContext = pageContext; 36 } 37 38 public void close() throws IOException 39 { 40 _pageContext.getOut().close(); 41 } 42 43 public void flush() throws IOException 44 { 45 _pageContext.getOut().flush(); 46 } 47 48 public void write(char cbuf[], int off, int len) throws IOException 49 { 50 _pageContext.getOut().write(cbuf, off, len); 51 } 52 53 public void write(int c) throws IOException 54 { 55 _pageContext.getOut().write(c); 56 } 57 58 public void write(char cbuf[]) throws IOException 59 { 60 _pageContext.getOut().write(cbuf); 61 } 62 63 public void write(String str) throws IOException 64 { 65 _pageContext.getOut().write(str); 66 } 67 68 public void write(String str, int off, int len) throws IOException 69 { 70 _pageContext.getOut().write(str, off, len); 71 } 72 73 } 74 | Popular Tags |