public class AutoCloseInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
AutoCloseInputStream(java.io.InputStream in)
Create a new input stream.
|
public AutoCloseInputStream(java.io.InputStream in)
in - the input streampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException