Class ReusableInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.gcube.datatransfer.resolver.gis.geonetwork.ReusableInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ReusableInputStream extends InputStream
- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Jun 16, 2016
-
-
Constructor Summary
Constructors Constructor Description ReusableInputStream(InputStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()intread(byte[] bytes)intread(byte[] bytes, int offset, int length)-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
ReusableInputStream
public ReusableInputStream(InputStream input) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] bytes) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] bytes, int offset, int length) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
-