Package org.pentaho.di.core.compress
Class CompressionInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.pentaho.di.core.compress.CompressionInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
GZIPCompressionInputStream
,HadoopSnappyCompressionInputStream
,NoneCompressionProvider.NoneCompressionInputStream
,SnappyCompressionInputStream
,ZIPCompressionInputStream
public abstract class CompressionInputStream extends InputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected InputStream
delegate
-
Constructor Summary
Constructors Constructor Description CompressionInputStream(InputStream in, CompressionProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CompressionProvider
getCompressionProvider()
Object
nextEntry()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Field Detail
-
delegate
protected InputStream delegate
-
-
Constructor Detail
-
CompressionInputStream
public CompressionInputStream(InputStream in, CompressionProvider provider)
-
-
Method Detail
-
getCompressionProvider
public CompressionProvider getCompressionProvider()
-
nextEntry
public Object nextEntry() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
-