|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.vfs.Path
com.caucho.vfs.FilesystemPath
com.caucho.vfs.JarPath
public class JarPath
A filesystem for .jar files.
| Field Summary |
|---|
| Fields inherited from class com.caucho.vfs.FilesystemPath |
|---|
_bindRoot, _pathname, _root, _userPath |
| Fields inherited from class com.caucho.vfs.Path |
|---|
_pathSeparatorChar, _schemeMap, _separatorChar, L |
| Constructor Summary | |
|---|---|
protected |
JarPath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path,
Path backing)
Creates a new jar path for the specific file |
| Method Summary | |
|---|---|
boolean |
canRead()
Tests if the file can be read. |
boolean |
canWrite()
Tests if the file can be written. |
void |
closeJar()
|
static JarPath |
create(Path backing)
Creates a new root Jar path. |
boolean |
equals(java.lang.Object o)
Tests for equality. |
boolean |
exists()
Returns true if the entry exists in the jar file. |
Path |
fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String path)
Lookup a path relative to the current filesystem's root. |
java.security.cert.Certificate[] |
getCertificates()
Returns any signing certificates. |
Path |
getContainer()
Returns the underlying file below the jar. |
PersistentDependency |
getDepend()
Returns the dependency checker from the jar. |
Jar |
getJar()
|
long |
getLastModified()
Returns the last modified time of the file. |
long |
getLength()
Returns the length of the file in bytes. |
java.util.jar.Manifest |
getManifest()
Returns the manifest. |
java.lang.String |
getScheme()
Returns the scheme (jar) |
java.lang.String |
getURL()
Returns the full url. |
int |
hashCode()
|
boolean |
isDirectory()
Returns true if the entry is a directory in the jar file. |
boolean |
isFile()
Returns true if the entry is a file in the jar file. |
boolean |
isPathCacheable()
Returns true if the path itself is cacheable |
java.lang.String[] |
list()
Returns a list of the directories in the jar. |
StreamImpl |
openReadImpl()
|
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.vfs.FilesystemPath |
|---|
bind, createRoot, getFullPath, getParent, getPath, getRoot, getTail, getUserPath, normalizePath, normalizePath, schemeWalk, setUserPath |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected JarPath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path,
Path backing)
root - the root of this jaruserPath - the path specified by the user in the lookup()path - the normalized pathjarFile - the underlying jar| Method Detail |
|---|
public static JarPath create(Path backing)
public Path fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String path)
FilesystemPath
fsWalk in class FilesystemPathuserPath - the exact string passed by the user's lookup()attributes - the user's new attributespath - the normalized real path
public java.lang.String getScheme()
getScheme in class Pathpublic boolean isPathCacheable()
Path
isPathCacheable in class Pathpublic java.lang.String getURL()
public Path getContainer()
public java.security.cert.Certificate[] getCertificates()
getCertificates in class Pathpublic boolean exists()
exists in class Pathpublic boolean isDirectory()
isDirectory in class Pathpublic boolean isFile()
isFile in class Pathpublic long getLength()
Path
getLength in class Pathpublic long getLastModified()
Path
getLastModified in class Pathpublic boolean canRead()
Path
canRead in class Pathpublic boolean canWrite()
Path
canWrite in class Path
public java.lang.String[] list()
throws java.io.IOException
list in class Pathjava.io.IOException
public java.util.jar.Manifest getManifest()
throws java.io.IOException
java.io.IOExceptionpublic PersistentDependency getDepend()
public StreamImpl openReadImpl()
throws java.io.IOException
openReadImpl in class Pathjava.io.IOExceptionpublic Jar getJar()
public void closeJar()
public java.lang.String toString()
toString in class Pathpublic int hashCode()
hashCode in class FilesystemPathpublic boolean equals(java.lang.Object o)
equals in class FilesystemPath
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||