1 16 package org.mortbay.jetty.servlet; 17 18 import java.io.IOException ; 19 20 import javax.servlet.ServletInputStream ; 21 22 import org.mortbay.http.HttpInputStream; 23 24 25 class ServletIn extends ServletInputStream 26 { 27 HttpInputStream _in; 28 29 30 ServletIn(HttpInputStream in) 31 { 32 _in=in; 33 } 34 35 36 public int read() 37 throws IOException 38 { 39 return _in.read(); 40 } 41 42 43 public int read(byte b[]) throws IOException 44 { 45 return _in.read(b); 46 } 47 48 49 public int read(byte b[], int off, int len) throws IOException 50 { 51 return _in.read(b,off,len); 52 } 53 54 55 public long skip(long len) throws IOException 56 { 57 return _in.skip(len); 58 } 59 60 61 public int available() 62 throws IOException 63 { 64 return _in.available(); 65 } 66 67 68 public void close() 69 throws IOException 70 { 71 _in.close(); 72 } 73 74 75 public boolean markSupported() 76 { 77 return _in.markSupported(); 78 } 79 80 81 public void reset() 82 throws IOException 83 { 84 _in.reset(); 85 } 86 87 88 public void mark(int readlimit) 89 { 90 _in.mark(readlimit); 91 } 92 93 } 94 95 96 | Popular Tags |