Package org.pentaho.di.core.compress
Class CompressionOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.pentaho.di.core.compress.CompressionOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
GZIPCompressionOutputStream
,HadoopSnappyCompressionOutputStream
,NoneCompressionProvider.NoneCompressionOutputStream
,SnappyCompressionOutputStream
,ZIPCompressionOutputStream
public abstract class CompressionOutputStream extends OutputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected OutputStream
delegate
-
Constructor Summary
Constructors Constructor Description CompressionOutputStream(OutputStream out, CompressionProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntry(String filename, String extension)
void
close()
CompressionProvider
getCompressionProvider()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
-
-
-
Field Detail
-
delegate
protected OutputStream delegate
-
-
Constructor Detail
-
CompressionOutputStream
public CompressionOutputStream(OutputStream out, CompressionProvider provider)
-
-
Method Detail
-
getCompressionProvider
public CompressionProvider getCompressionProvider()
-
addEntry
public void addEntry(String filename, String extension) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
-