@Test public void testTarGzExporter() throws Exception { assertEquals(TarGzExporter.class, new ArchiveFormatStreamBindings(ArchiveFormat.TAR_GZ).getExporter()); }
@Test public void testTarGzImporter() throws Exception { assertEquals(TarGzImporter.class, new ArchiveFormatStreamBindings(ArchiveFormat.TAR_GZ).getImporter()); }
final ArchiveFormatStreamBindings formatBinding = new ArchiveFormatStreamBindings(archiveFormat); try { stream = asset.openStream(); X archive = ShrinkWrap.create(formatBinding.getImporter(), path.get()).importFrom(stream).as(type); delete(path); add(new ArchiveAsset(archive, formatBinding.getExporter()), path);
final ArchiveFormatStreamBindings formatBinding = new ArchiveFormatStreamBindings(archiveFormat); try { stream = asset.openStream(); X archive = ShrinkWrap.create(formatBinding.getImporter(), path.get()).importFrom(stream).as(type); delete(path); add(new ArchiveAsset(archive, formatBinding.getExporter()), path);
@Test public void testTarBz2Exporter() throws Exception { assertEquals(TarBz2Exporter.class, new ArchiveFormatStreamBindings(ArchiveFormat.TAR_BZ).getExporter()); } }
@Test public void testTarBz2Importer() throws Exception { assertEquals(TarBz2Importer.class, new ArchiveFormatStreamBindings(ArchiveFormat.TAR_BZ).getImporter()); }
@Test public void testTarExporter() throws Exception { assertEquals(TarExporter.class, new ArchiveFormatStreamBindings(ArchiveFormat.TAR).getExporter()); }
@Test public void testZipImporter() throws Exception { assertEquals(ZipImporter.class, new ArchiveFormatStreamBindings(ArchiveFormat.ZIP).getImporter()); }
@Test public void testZipExporter() throws Exception { assertEquals(ZipExporter.class, new ArchiveFormatStreamBindings(ArchiveFormat.ZIP).getExporter()); }
@Test public void testTarImporter() throws Exception { assertEquals(TarImporter.class, new ArchiveFormatStreamBindings(ArchiveFormat.TAR).getImporter()); }