List of usage examples for org.apache.commons.compress.archivers ArchiveException toString
public String toString()
From source file:com.github.n_i_e.dirtreedb.ApacheCompressArchiveLister.java
public ApacheCompressArchiveLister(PathEntry basepath, InputStream inf) throws IOException { super(basepath); Assertion.assertNullPointerException(inf != null); Assertion.assertAssertionError(inf.markSupported()); try {/*from w ww .j a va 2 s . co m*/ instream = new ArchiveStreamFactory().createArchiveInputStream(inf); } catch (ArchiveException e) { throw new IOException(e.toString()); } }
From source file:com.github.n_i_e.dirtreedb.ApacheCompressCompressingArchiveLister.java
public ApacheCompressCompressingArchiveLister(PathEntry basepath, InputStream inf) throws IOException { super(basepath); Assertion.assertNullPointerException(inf != null); try {//from ww w .j a v a 2 s. co m InputStream inf2 = new CompressorStreamFactory().createCompressorInputStream(inf); InputStream inf3 = new BufferedInputStream(inf2); assert (inf3.markSupported()); instream = new ArchiveStreamFactory().createArchiveInputStream(inf3); } catch (ArchiveException e) { throw new IOException(e.toString()); } catch (CompressorException e) { throw new IOException(e.toString()); } }