| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreRootFolders |
protected int |
pathSegmentsToTrim |
| Constructor and Description |
|---|
UnPacker() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
countRootFolders(List<String> fileNames) |
protected static int |
countRootFolders(Set<? extends org.apache.commons.compress.archivers.ArchiveEntry> entries) |
abstract boolean |
handles(File archive) |
void |
setIgnoreRootFolders(boolean ignoreRootFolders) |
void |
setPathSegmentsToTrim(int pathSegmentsToTrim) |
protected static String |
trimPathSegments(String zipPath,
int pathSegmentsToTrim) |
abstract String |
type() |
abstract void |
unpack(File archive,
File destination) |
protected boolean ignoreRootFolders
protected int pathSegmentsToTrim
protected static int countRootFolders(Set<? extends org.apache.commons.compress.archivers.ArchiveEntry> entries)
public void setIgnoreRootFolders(boolean ignoreRootFolders)
public void setPathSegmentsToTrim(int pathSegmentsToTrim)
public abstract String type()
public abstract void unpack(File archive, File destination) throws IOException
IOExceptionpublic abstract boolean handles(File archive)
Copyright © 2021. All rights reserved.