1 16 package org.apache.commons.io.input; 17 18 import java.io.FilterInputStream ; 19 import java.io.IOException ; 20 import java.io.InputStream ; 21 22 31 public abstract class ProxyInputStream extends FilterInputStream { 32 33 private InputStream proxy; 34 35 39 public ProxyInputStream(InputStream proxy) { 40 super(proxy); 41 this.proxy = proxy; 42 } 43 44 45 public int read() throws IOException { 46 return this.proxy.read(); 47 } 48 49 50 public int read(byte[] bts) throws IOException { 51 return this.proxy.read(bts); 52 } 53 54 55 public int read(byte[] bts, int st, int end) throws IOException { 56 return this.proxy.read(bts, st, end); 57 } 58 59 60 public long skip(long ln) throws IOException { 61 return this.proxy.skip(ln); 62 } 63 64 65 public int available() throws IOException { 66 return this.proxy.available(); 67 } 68 69 70 public void close() throws IOException { 71 this.proxy.close(); 72 } 73 74 75 public synchronized void mark(int idx) { 76 this.proxy.mark(idx); 77 } 78 79 80 public synchronized void reset() throws IOException { 81 this.proxy.reset(); 82 } 83 84 85 public boolean markSupported() { 86 return this.proxy.markSupported(); 87 } 88 89 } 90 | Popular Tags |