01: package com.sun.portal.rproxy.connectionhandler;
02:
03: import java.io.BufferedInputStream;
04: import java.io.IOException;
05:
06: import javax.servlet.ServletInputStream;
07:
08: public class GatewayServletInputStream extends ServletInputStream {
09: public BufferedInputStream input;
10:
11: GatewayServletInputStream(BufferedInputStream in) {
12: input = in;
13: }
14:
15: public int available() throws IOException {
16: return input.available();
17: }
18:
19: public void close() throws IOException {
20: input.close();
21: }
22:
23: public void mark(int readlimit) {
24: input.mark(readlimit);
25: }
26:
27: public boolean markSupported() {
28: return input.markSupported();
29: }
30:
31: public int read() throws IOException {
32: return input.read();
33: }
34:
35: public int read(byte b[]) throws IOException {
36: return input.read(b);
37: }
38:
39: public int read(byte b[], int off, int len) throws IOException {
40: return input.read(b, off, len);
41: }
42:
43: public void reset() throws IOException {
44: input.reset();
45: }
46:
47: public long skip(long n) throws IOException {
48: return input.skip(n);
49: }
50: }
|