|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.vfs.Path | +--com.caucho.vfs.FilesystemPath | +--com.caucho.vfs.JarPath
A filesystem for .jar files.
Fields inherited from class com.caucho.vfs.FilesystemPath |
bindRoot, pathname, root, separatorChar, userPath |
Fields inherited from class com.caucho.vfs.Path |
L, schemeMap |
Constructor Summary | |
protected |
JarPath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path,
com.caucho.vfs.Jar jarFile)
Creates a new jar path for the specific file |
|
JarPath(Path backing)
|
Method Summary | |
boolean |
canRead()
Tests if the file can be read. |
boolean |
canWrite()
Tests if the file can be written. |
boolean |
equals(java.lang.Object b)
|
boolean |
exists()
Returns true if the entry exists in the jar file. |
protected Path |
fsWalk(java.lang.String userPath,
java.util.Map attributes,
java.lang.String path)
Lookup a path relative to the current filesystem's root. |
Path |
getContainer()
Returns the underlying file below the jar. |
long |
getLastModified()
Returns the last modified time of the file. |
long |
getLength()
Returns the length of the file in bytes. |
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. |
java.lang.String[] |
list()
|
StreamImpl |
openReadImpl()
|
java.lang.String |
toString()
|
Methods inherited from class com.caucho.vfs.FilesystemPath |
bind, copy, createRoot, getFullPath, getParent, getPath, getTail, getUserPath, normalizePath, normalizePath, schemeWalk, setUserPath |
Methods inherited from class com.caucho.vfs.Path |
createNewFile, createRoot, createTempFile, getAttribute, getAttributeNames, getContentType, getHost, getNativePath, getObject, getPort, getQuery, getValue, isObject, iterator, lookup, lookup, lookupNative, lookupNative, mkdir, mkdirs, openAppend, openAppendImpl, openRead, openReadWrite, openReadWriteImpl, openWrite, openWriteImpl, remove, removeAttribute, renameTo, renameTo, scanScheme, setAttribute, setLastModified, setObject, setValue, unbind, writeToStream |
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, com.caucho.vfs.Jar jarFile)
root
- the root of this jaruserPath
- the path specified by the user in the lookup()path
- the normalized pathjarFile
- the underlying jarpublic JarPath(Path backing)
Method Detail |
protected Path fsWalk(java.lang.String userPath, java.util.Map attributes, java.lang.String path)
FilesystemPath
fsWalk
in class FilesystemPath
com.caucho.vfs.FilesystemPath
userPath
- the exact string passed by the user's lookup()newAttributes
- the user's new attributesnewPath
- the normalized real pathpublic java.lang.String getScheme()
getScheme
in class Path
public java.lang.String getURL()
jar:
getURL
in class FilesystemPath
public Path getContainer()
public boolean exists()
exists
in class Path
public boolean isDirectory()
isDirectory
in class Path
public boolean isFile()
isFile
in class Path
public long getLength()
Path
getLength
in class Path
com.caucho.vfs.Path
public long getLastModified()
Path
getLastModified
in class Path
com.caucho.vfs.Path
public boolean canRead()
Path
canRead
in class Path
public boolean canWrite()
Path
canWrite
in class Path
public java.lang.String[] list() throws java.io.IOException
list
in class Path
com.caucho.vfs.Path
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
public java.lang.String toString()
toString
in class FilesystemPath
public int hashCode()
hashCode
in class FilesystemPath
public boolean equals(java.lang.Object b)
equals
in class FilesystemPath
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |