Example usage for org.apache.commons.compress.archivers ArchiveException toString

List of usage examples for org.apache.commons.compress.archivers ArchiveException toString

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers ArchiveException toString.

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

Usage

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());
    }
}