1 package org.scannotation.classpath;
3 import java.io.InputStream;
4 import java.io.IOException;
7 * Delegate to everything but close(). This object will not close the stream
9 * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
10 * @version $Revision: 1 $
12 public class InputStreamWrapper extends InputStream
14 private InputStream delegate;
16 public InputStreamWrapper(InputStream delegate)
18 this.delegate = delegate;
24 return delegate.read();
27 public int read(byte[] bytes)
30 return delegate.read(bytes);
33 public int read(byte[] bytes, int i, int i1)
36 return delegate.read(bytes, i, i1);
39 public long skip(long l)
42 return delegate.skip(l);
45 public int available()
48 return delegate.available();
57 public void mark(int i)
68 public boolean markSupported()
70 return delegate.markSupported();