Class AbstractArchiver<C extends org.siouan.frontendgradleplugin.core.archivers.ArchiverContext,E extends org.siouan.frontendgradleplugin.core.archivers.ArchiveEntry>
- java.lang.Object
-
- org.siouan.frontendgradleplugin.core.archivers.AbstractArchiver<C,E>
-
- Type Parameters:
C- Class of the context used internally to provide access to low-level API.E- Class of an archive entry.
- All Implemented Interfaces:
Archiver
public abstract class AbstractArchiver<C extends org.siouan.frontendgradleplugin.core.archivers.ArchiverContext,E extends org.siouan.frontendgradleplugin.core.archivers.ArchiveEntry> extends java.lang.Object implements Archiver
Base class of an archiver. When exploding archives, the exploder tries to restore symbolic links and Unix permissions of each entry in the archive. However, on Windows O/S:- Unix permissions are ignored.
- Exploding will probably fail if the archive contains symbolic links, and the JVM does not run with administrator priviledges.
- Since:
- 1.1.3
-
-
Constructor Summary
Constructors Constructor Description AbstractArchiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexplode(ExplodeSettings settings)Explodes an archive into a target directory.
-
-
-
Method Detail
-
explode
public void explode(ExplodeSettings settings) throws SlipAttackException, UnsupportedEntryException, ArchiverException
Description copied from interface:ArchiverExplodes an archive into a target directory.- Specified by:
explodein interfaceArchiver- Parameters:
settings- Explode settings.- Throws:
SlipAttackException- If a slip attack is detected.UnsupportedEntryException- If the archive contains an unsupported entry (not a symbolic link, a regular file or a directory).ArchiverException- If the extraction fails.
-
-