public class NestedJarHandler extends Object implements AutoCloseable
Constructor and Description |
---|
NestedJarHandler(InterruptionChecker interruptionChecker,
LogNode log) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Delete temporary files and release other resources.
|
File |
getInnermostNestedJar(String nestedJarPath)
Given a nested jar path consisting of jar names separated by '!', decompress each nested jarfile to a
temporary file, and return the File reference for the innermost jarfile.
|
File |
getNestedJarfile(String nestedJarfilePath)
Get a File for a given (possibly nested) jarfile path, unzipping the first N-1 segments of an N-segment
'!'-delimited path to temporary files, then returning the N-th temporary file.
|
Recycler<ZipFile,IOException> |
getZipFileRecycler(String canonicalPath)
Get a ZipFile recycler given the (non-nested) canonical path of a jarfile.
|
File |
unzipToTempFile(ZipFile zipFile,
ZipEntry zipEntry)
Unzip a ZipEntry to a temporary file, then return the temporary file.
|
public NestedJarHandler(InterruptionChecker interruptionChecker, LogNode log)
public File getNestedJarfile(String nestedJarfilePath)
public Recycler<ZipFile,IOException> getZipFileRecycler(String canonicalPath)
public File getInnermostNestedJar(String nestedJarPath)
public File unzipToTempFile(ZipFile zipFile, ZipEntry zipEntry) throws IOException
IOException
public void close()
close
in interface AutoCloseable
Copyright © 2016. All rights reserved.