|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.util.AbstractFileSystemHelper
org.apache.jetspeed.util.JarHelper
public class JarHelper
DirectoryHelper
.Field Summary | |
---|---|
private boolean |
deleteOnClose
|
protected DirectoryHelper |
dirHelper
|
protected File |
file
|
protected JarFile |
jarFile
|
protected File |
jarRoot
|
Constructor Summary | |
---|---|
JarHelper(File file,
boolean deleteOnClose)
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.apache.jetspeed.util.AbstractFileSystemHelper |
---|
getChecksum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.util.FileSystemHelper |
---|
getChecksum |
Field Detail |
---|
protected JarFile jarFile
protected DirectoryHelper dirHelper
protected File file
private boolean deleteOnClose
protected File jarRoot
Constructor Detail |
---|
public JarHelper(File file, boolean deleteOnClose) throws IOException
jarFile
-
IOException
Method Detail |
---|
protected void copyEntryToFile(JarFile jarFile, File jarRoot, JarEntry jarEntry) throws IOException, FileNotFoundException
copyEntryToFile
jarFile
- jarRoot
- jarEntry
-
IOException
FileNotFoundException
public void copyFrom(File directory, FileFilter fileFilter) throws IOException
copyFrom
copyFrom
in interface org.apache.jetspeed.util.FileSystemHelper
directory
- fileFilter
-
IOException
public void copyFrom(File directory) throws IOException
copyFrom
copyFrom
in interface org.apache.jetspeed.util.FileSystemHelper
directory
-
IOException
FileSystemHelper.copyFrom(java.io.File)
public File getRootDirectory()
getRootDirectory
getRootDirectory
in interface org.apache.jetspeed.util.FileSystemHelper
getRootDirectory
in class AbstractFileSystemHelper
FileSystemHelper.getRootDirectory()
public boolean remove()
remove
remove
in interface org.apache.jetspeed.util.FileSystemHelper
FileSystemHelper.remove()
public void close() throws IOException
close
close
in interface org.apache.jetspeed.util.FileSystemHelper
IOException
FileSystemHelper.close()
public String getSourcePath()
getSourcePath
getSourcePath
in interface org.apache.jetspeed.util.FileSystemHelper
FileSystemHelper.getSourcePath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |