Backed by commons-compress, the Smart Archive detects and morphs into a specific archive stream
At times you might have to handle an archive input stream but you will have no prior knowledge of the archiving method.
Based on the magic headers, the Smart Archive will auto-detect the archiving method and apply it accordingly.
Currently the support types are tar
, ar
and zip
.
The Smart Archive will also apply a GZip
filter if needed.
If you haven’t already done so, add JCenter to your repositories:
repositories {
jcenter()
}
Then add the dependency to compile time:
dependencies {
compile 'org.10ne:smarchive:0.1'
}