| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package javax.faces.internal; |
| 17 | |
|
| 18 | |
import java.io.IOException; |
| 19 | |
import java.io.Writer; |
| 20 | |
|
| 21 | |
import javax.servlet.jsp.PageContext; |
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
public class PageContextOutWriter extends Writer { |
| 30 | |
|
| 31 | |
private PageContext pageContext; |
| 32 | |
|
| 33 | 0 | public PageContextOutWriter(PageContext pageContext) { |
| 34 | 0 | this.pageContext = pageContext; |
| 35 | 0 | } |
| 36 | |
|
| 37 | |
public void close() throws IOException { |
| 38 | 0 | pageContext.getOut().close(); |
| 39 | 0 | } |
| 40 | |
|
| 41 | |
public void flush() throws IOException { |
| 42 | 0 | pageContext.getOut().flush(); |
| 43 | 0 | } |
| 44 | |
|
| 45 | |
public void write(char cbuf[], int off, int len) throws IOException { |
| 46 | 0 | pageContext.getOut().write(cbuf, off, len); |
| 47 | 0 | } |
| 48 | |
|
| 49 | |
public void write(int c) throws IOException { |
| 50 | 0 | pageContext.getOut().write(c); |
| 51 | 0 | } |
| 52 | |
|
| 53 | |
public void write(char cbuf[]) throws IOException { |
| 54 | 0 | pageContext.getOut().write(cbuf); |
| 55 | 0 | } |
| 56 | |
|
| 57 | |
public void write(String str) throws IOException { |
| 58 | 0 | pageContext.getOut().write(str); |
| 59 | 0 | } |
| 60 | |
|
| 61 | |
public void write(String str, int off, int len) throws IOException { |
| 62 | 0 | pageContext.getOut().write(str, off, len); |
| 63 | 0 | } |
| 64 | |
|
| 65 | |
protected PageContext getPageContext() { |
| 66 | 0 | return pageContext; |
| 67 | |
} |
| 68 | |
} |