Package org.teiid.dqp.internal.process
Class SaveOnReadInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.teiid.dqp.internal.process.SaveOnReadInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class SaveOnReadInputStream extends FilterInputStream
AnInputStream
wrapper that saves the input on read and provides aInputStreamFactory
.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description SaveOnReadInputStream(InputStream in, FileStoreInputStreamFactory fsisf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
InputStreamFactory
getInputStreamFactory()
int
read()
int
read(byte[] b, int off, int len)
-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset, skip
-
-
-
-
Constructor Detail
-
SaveOnReadInputStream
public SaveOnReadInputStream(InputStream in, FileStoreInputStreamFactory fsisf)
-
-
Method Detail
-
read
public int read() throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
getInputStreamFactory
public InputStreamFactory getInputStreamFactory()
-
-