@@ -0,0 +1,1616 @@
+package to.etc.util;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0A%0A/**%0A * @author %3Ca href=%22mailto:jal@etc.to%22%3EFrits Jalvingh%3C/a%3E%0A * Created on 16-02-21.%0A */%0Apublic class InputStreamWrapper extends InputStream %7B%0A%09@Override%0A%09public int read() throws IOException %7B%0A%09%09return m_wrapped.read();%0A%09%7D%0A%0A%09@Override%0A%09public byte%5B%5D readAllBytes() throws IOException %7B%0A%09%09return m_wrapped.readAllBytes();%0A%09%7D%0A%0A%09@Override%0A%09public byte%5B%5D readNBytes(int len) throws IOException %7B%0A%09%09return m_wrapped.readNBytes(len);%0A%09%7D%0A%0A%09@Override%0A%09public int readNBytes(byte%5B%5D b, int off, int len) throws IOException %7B%0A%09%09return m_wrapped.readNBytes(b, off, len);%0A%09%7D%0A%0A%09@Override%0A%09public long skip(long n) throws IOException %7B%0A%09%09return m_wrapped.skip(n);%0A%09%7D%0A%0A%09@Override%0A%09public int available() throws IOException %7B%0A%09%09return m_wrapped.available();%0A%09%7D%0A%0A%09@Override%0A%09public void close() throws IOException %7B%0A%09%09m_wrapped.close();%0A%09%7D%0A%0A%09@Override%0A%09public void mark(int readlimit) %7B%0A%09%09m_wrapped.mark(readlimit);%0A%09%7D%0A%0A%09@Override%0A%09public void reset() throws IOException %7B%0A%09%09m_wrapped.reset();%0A%09%7D%0A%0A%09@Override%0A%09public boolean markSupported() %7B%0A%09%09return m_wrapped.markSupported();%0A%09%7D%0A%0A%09@Override%0A%09public long transferTo(OutputStream out) throws IOException %7B%0A%09%09return m_wrapped.transferTo(out);%0A%09%7D%0A%0A%09private final InputStream m_wrapped;%0A%0A%09public InputStreamWrapper(InputStream wrapped) %7B%0A%09%09m_wrapped = wrapped;%0A%09%7D%0A%0A%09@Override%0A%09public int read(byte%5B%5D b) throws IOException %7B%0A%09%09return m_wrapped.read(b);%0A%09%7D%0A%0A%09@Override%0A%09public int read(byte%5B%5D b, int off, int len) throws IOException %7B%0A%09%09return m_wrapped.read(b, off, len);%0A%09%7D%0A%7D%0A

Add ftp(s) stream source.