1 7 8 package java.io; 9 10 28 public 29 class FilterInputStream extends InputStream { 30 33 protected volatile InputStream in; 34 35 44 protected FilterInputStream(InputStream in) { 45 this.in = in; 46 } 47 48 65 public int read() throws IOException { 66 return in.read(); 67 } 68 69 89 public int read(byte b[]) throws IOException { 90 return read(b, 0, b.length); 91 } 92 93 110 public int read(byte b[], int off, int len) throws IOException { 111 return in.read(b, off, len); 112 } 113 114 128 public long skip(long n) throws IOException { 129 return in.skip(n); 130 } 131 132 145 public int available() throws IOException { 146 return in.available(); 147 } 148 149 158 public void close() throws IOException { 159 in.close(); 160 } 161 162 178 public synchronized void mark(int readlimit) { 179 in.mark(readlimit); 180 } 181 182 203 public synchronized void reset() throws IOException { 204 in.reset(); 205 } 206 207 220 public boolean markSupported() { 221 return in.markSupported(); 222 } 223 } 224 | Popular Tags |