public class JarAsDirectory extends File
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
JarAsDirectory(String jarpath)
Create a directory representation of a jar file.
|
JarAsDirectory(String jarpath,
ZipEntry entry)
Create a directory representation of a jar file entry.
|
Modifier and Type | Method and Description |
---|---|
MultiCollection |
createEntries() |
File[] |
createFiles(String key,
MultiCollection entries)
Create the files for an entry.
|
boolean |
exists()
Check if the file exists.
|
String |
getAbsolutePath() |
Map |
getEntryFiles()
Get the entryfiles.
|
File |
getFile(String path)
Get a file for an entry path.
|
String |
getJarPath()
Get the path to the jar file.
|
long |
getLastModified()
Get the lastmodified.
|
ZipEntry |
getZipEntry()
Get the zip entry, if any (file pointer inside jar file).
|
boolean |
isDirectory() |
boolean |
isRoot()
Test if this is the real jar (not a contained file).
|
long |
lastModified() |
File[] |
listFiles() |
File[] |
listFiles(FileFilter filter) |
File[] |
listFiles(FilenameFilter filter) |
boolean |
refresh()
Refresh the jar entries.
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, getAbsoluteFile, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isFile, isHidden, length, list, list, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public JarAsDirectory(String jarpath)
public boolean isDirectory()
isDirectory
in class File
public File[] listFiles(FileFilter filter)
public File[] listFiles(FilenameFilter filter)
public String getAbsolutePath()
getAbsolutePath
in class File
public long lastModified()
lastModified
in class File
public boolean refresh()
public MultiCollection createEntries()
public File[] createFiles(String key, MultiCollection entries)
public String getJarPath()
public ZipEntry getZipEntry()
public Map getEntryFiles()
public boolean isRoot()
public long getLastModified()
Copyright © 2013. All Rights Reserved.