public class JarHelper extends AbstractFileSystemHelper implements FileSystemHelper
DirectoryHelper.| Modifier and Type | Field and Description |
|---|---|
protected DirectoryHelper |
dirHelper |
protected File |
file |
protected JarFile |
jarFile |
protected File |
jarRoot |
| Constructor and Description |
|---|
JarHelper(File file,
boolean deleteOnClose) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close
|
protected void |
copyEntryToFile(JarFile jarFile,
File jarRoot,
JarEntry jarEntry)
copyEntryToFile
|
void |
copyFrom(File directory)
copyFrom
|
void |
copyFrom(File directory,
FileFilter fileFilter)
copyFrom
|
File |
getRootDirectory()
getRootDirectory
|
String |
getSourcePath()
getSourcePath
|
boolean |
remove()
remove
|
getChecksumclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChecksumprotected JarFile jarFile
protected DirectoryHelper dirHelper
protected File file
protected File jarRoot
public JarHelper(File file, boolean deleteOnClose) throws IOException
jarFile - IOExceptionprotected void copyEntryToFile(JarFile jarFile, File jarRoot, JarEntry jarEntry) throws IOException, FileNotFoundException
copyEntryToFile
jarFile - jarRoot - jarEntry - IOExceptionFileNotFoundExceptionpublic void copyFrom(File directory, FileFilter fileFilter) throws IOException
copyFrom
copyFrom in interface FileSystemHelperdirectory - fileFilter - IOExceptionpublic void copyFrom(File directory) throws IOException
copyFrom
copyFrom in interface FileSystemHelperdirectory - IOExceptionFileSystemHelper.copyFrom(java.io.File)public File getRootDirectory()
getRootDirectory
getRootDirectory in interface FileSystemHelpergetRootDirectory in class AbstractFileSystemHelperFileSystemHelper.getRootDirectory()public boolean remove()
remove
remove in interface FileSystemHelperFileSystemHelper.remove()public void close()
throws IOException
close
close in interface FileSystemHelperIOExceptionFileSystemHelper.close()public String getSourcePath()
getSourcePath
getSourcePath in interface FileSystemHelperFileSystemHelper.getSourcePath()Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.