use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class SnappyCompressionOutputStreamTest method testAddEntry.
@Test
public void testAddEntry() throws IOException {
CompressionProvider provider = outStream.getCompressionProvider();
ByteArrayOutputStream out = new ByteArrayOutputStream();
outStream = new SnappyCompressionOutputStream(out, provider);
outStream.addEntry(null, null);
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class ZIPCompressionInputStreamTest method testRead.
@Test
public void testRead() throws IOException {
CompressionProvider provider = inStream.getCompressionProvider();
ByteArrayInputStream in = new ByteArrayInputStream("Test".getBytes());
inStream = new ZIPCompressionInputStream(in, provider) {
};
inStream.read(new byte[100], 0, inStream.available());
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class ZIPCompressionInputStreamTest method setUp.
@Before
public void setUp() throws Exception {
factory = CompressionProviderFactory.getInstance();
CompressionProvider provider = factory.getCompressionProviderByName(PROVIDER_NAME);
ByteArrayInputStream in = new ByteArrayInputStream("Test".getBytes());
inStream = new ZIPCompressionInputStream(in, provider) {
};
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class ZIPCompressionOutputStreamTest method setUp.
@Before
public void setUp() throws Exception {
factory = CompressionProviderFactory.getInstance();
CompressionProvider provider = factory.getCompressionProviderByName(PROVIDER_NAME);
internalStream = new ByteArrayOutputStream();
outStream = new ZIPCompressionOutputStream(internalStream, provider);
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class ZIPCompressionOutputStreamTest method testClose.
@Test
public void testClose() throws IOException {
CompressionProvider provider = outStream.getCompressionProvider();
ByteArrayOutputStream out = new ByteArrayOutputStream();
outStream = new ZIPCompressionOutputStream(out, provider);
outStream.close();
}
Aggregations