public class AutoCloseInputStream extends InputStream
Constructor and Description |
---|
AutoCloseInputStream(InputStream in)
Create a new input stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, reset, skip
public AutoCloseInputStream(InputStream in)
in
- the input streampublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.