Methods Summary |
---|
public int | available()
checkIfClosed();
return is.available();
|
private void | checkIfClosed()Check if the underlying InputStream is null. If so throw an Exception
if (is == null)
throw new IOException("Stream is closed");
|
public void | close()Set the underlying InputStream to null
is = null;
|
public java.io.InputStream | getUnderlyingStream()
return is;
|
public synchronized void | mark(int readlimit)
if (is != null)
is.mark(readlimit);
|
public boolean | markSupported()
if (is == null)
return false;
return is.markSupported();
|
public int | read(byte[] b)
checkIfClosed();
return is.read(b);
|
public int | read(byte[] b, int off, int len)
checkIfClosed();
return is.read(b, off, len);
|
public int | read()
checkIfClosed();
return is.read();
|
public synchronized void | reset()
checkIfClosed();
is.reset();
|
public long | skip(long n)
checkIfClosed();
return is.skip(n);
|