X-Git-Url: https://juplo.de/gitweb/?p=scannotation;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fscannotation%2Fclasspath%2FInputStreamWrapper.java;fp=src%2Fmain%2Fjava%2Forg%2Fscannotation%2Fclasspath%2FInputStreamWrapper.java;h=0000000000000000000000000000000000000000;hp=c19d0e727f8f0f8423d54825b9aa2ad0be01bda4;hb=36e6637926203201648e7892ec6ee1240807218e;hpb=58b6663aae5313b41167d92851981ca549cbb461 diff --git a/src/main/java/org/scannotation/classpath/InputStreamWrapper.java b/src/main/java/org/scannotation/classpath/InputStreamWrapper.java deleted file mode 100644 index c19d0e7..0000000 --- a/src/main/java/org/scannotation/classpath/InputStreamWrapper.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.scannotation.classpath; - -import java.io.InputStream; -import java.io.IOException; - -/** - * Delegate to everything but close(). This object will not close the stream - * - * @author Bill Burke - * @version $Revision: 1 $ - */ -public class InputStreamWrapper extends InputStream -{ - private InputStream delegate; - - public InputStreamWrapper(InputStream delegate) - { - this.delegate = delegate; - } - - public int read() - throws IOException - { - return delegate.read(); - } - - public int read(byte[] bytes) - throws IOException - { - return delegate.read(bytes); - } - - public int read(byte[] bytes, int i, int i1) - throws IOException - { - return delegate.read(bytes, i, i1); - } - - public long skip(long l) - throws IOException - { - return delegate.skip(l); - } - - public int available() - throws IOException - { - return delegate.available(); - } - - public void close() - throws IOException - { - // ignored - } - - public void mark(int i) - { - delegate.mark(i); - } - - public void reset() - throws IOException - { - delegate.reset(); - } - - public boolean markSupported() - { - return delegate.markSupported(); - } -}