public abstract class ProxyInputStream
extends java.io.FilterInputStream
It is an alternative base class to FilterInputStream to increase reusability, because FilterInputStream changes the methods being called, such as read(byte[]) to read(byte[], int, int).
| Constructor and Description |
|---|
ProxyInputStream(java.io.InputStream proxy)
Constructs a new ProxyInputStream.
|
public ProxyInputStream(java.io.InputStream proxy)
proxy - the InputStream to delegate topublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionInputStream.read()public int read(byte[] bts)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionInputStream.read(byte[])public int read(byte[] bts,
int st,
int end)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionInputStream.read(byte[], int, int)public long skip(long ln)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionInputStream.skip(long)public int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionInputStream.available()public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionInputStream.close()public void mark(int idx)
mark in class java.io.FilterInputStreamInputStream.mark(int)public void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOExceptionInputStream.reset()public boolean markSupported()
markSupported in class java.io.FilterInputStreamInputStream.markSupported()