|
||||||||||
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.GooglePath
public abstract class GooglePath
FilePath implements the native filesystem.
Field Summary | |
---|---|
protected FileService |
_fileService
|
protected GoogleInode |
_inode
|
protected GoogleInodeService |
_inodeService
|
protected GooglePath |
_parent
|
protected static java.lang.String |
QUERCUS_ROOT_PATH
|
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 |
GooglePath(FileService fileService,
GoogleInodeService inodeService)
|
protected |
GooglePath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path,
FileService fileService,
GoogleInodeService inodeService)
|
protected |
GooglePath(GooglePath path)
|
Method Summary | |
---|---|
boolean |
canRead()
Tests if the file can be read. |
boolean |
canWrite()
Tests if the file can be written. |
void |
clearStatusCache()
Clears any status cache |
Path |
copy()
|
protected abstract GooglePath |
createInstance(FilesystemPath root,
java.lang.String userPath,
java.lang.String path)
|
boolean |
equals(java.lang.Object b)
|
boolean |
exists()
Tests if the file exists. |
Path |
fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String path)
Lookup the actual path relative to the filesystem root. |
java.lang.String |
getFullPath()
For chrooted filesystems return the real system path. |
long |
getLastModified()
Returns the last modified time of the file. |
long |
getLength()
Returns the length of the file in bytes. |
int |
getMode()
Returns equivalent of struct stat.st_mode if appropriate. |
GooglePath |
getParent()
Return the parent Path |
java.lang.String |
getScheme()
Returns the url scheme |
java.lang.String |
getURL()
Returns the full url for the given path. |
int |
hashCode()
|
void |
init()
Call to initialize the root directory structure |
boolean |
isDirectory()
Tests if the path refers to a directory. |
boolean |
isExecutable()
Tests if the path is marked as executable |
boolean |
isFile()
Tests if the path refers to a file. |
protected boolean |
isPathCacheable()
Returns true if the path itself is cacheable |
java.lang.String[] |
list()
Returns a list of files in the directory. |
boolean |
mkdir()
Creates the directory named by this path. |
boolean |
mkdirs()
Creates the directory named by this path and any parent directories. |
RandomAccessStream |
openFileRandomAccess()
Opens a random-access stream. |
StreamImpl |
openReadImpl()
Returns the stream implementation for a read stream. |
boolean |
remove()
Removes the file or directory named by this path. |
protected abstract boolean |
removeImpl()
|
boolean |
renameTo(Path path)
Renames the file or directory to the name given by the path. |
void |
setLastModified(long time)
|
java.lang.String |
toString()
|
Methods inherited from class com.caucho.vfs.FilesystemPath |
---|
bind, createRoot, getPath, getRoot, getTail, getUserPath, init, normalizePath, normalizePath, schemeWalk, setUserPath |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String QUERCUS_ROOT_PATH
protected FileService _fileService
protected GoogleInodeService _inodeService
protected GooglePath _parent
protected GoogleInode _inode
Constructor Detail |
---|
protected GooglePath(FilesystemPath root, java.lang.String userPath, java.lang.String path, FileService fileService, GoogleInodeService inodeService)
path
- canonical pathprotected GooglePath(FileService fileService, GoogleInodeService inodeService)
protected GooglePath(GooglePath path)
Method Detail |
---|
public void init()
public java.lang.String getFullPath()
FilesystemPath
getFullPath
in class FilesystemPath
public Path fsWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.String path)
fsWalk
in class FilesystemPath
userPath
- the user's path to lookup()attributes
- the user's attributes to lookup()path
- the normalized path
protected abstract GooglePath createInstance(FilesystemPath root, java.lang.String userPath, java.lang.String path)
public GooglePath getParent()
FilesystemPath
getParent
in class FilesystemPath
protected boolean isPathCacheable()
isPathCacheable
in class Path
public java.lang.String getScheme()
Path
getScheme
in class Path
public java.lang.String getURL()
getURL
in class Path
public boolean exists()
Path
exists
in class Path
public int getMode()
Path
getMode
in class Path
public boolean isExecutable()
Path
isExecutable
in class Path
public boolean isDirectory()
Path
isDirectory
in class Path
public boolean isFile()
Path
isFile
in class Path
public long getLength()
Path
getLength
in class Path
public long getLastModified()
Path
getLastModified
in class Path
public void setLastModified(long time)
setLastModified
in class 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
java.io.IOException
public boolean mkdir() throws java.io.IOException
Path
mkdir
in class Path
java.io.IOException
public boolean mkdirs() throws java.io.IOException
Path
mkdirs
in class Path
java.io.IOException
public boolean remove()
Path
remove
in class Path
protected abstract boolean removeImpl()
public boolean renameTo(Path path) throws java.io.IOException
Path
renameTo
in class Path
java.io.IOException
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException
public RandomAccessStream openFileRandomAccess() throws java.io.IOException
Path
openFileRandomAccess
in class Path
java.io.IOException
public Path copy()
copy
in class Path
public void clearStatusCache()
Path
clearStatusCache
in class Path
public int hashCode()
hashCode
in class FilesystemPath
public boolean equals(java.lang.Object b)
equals
in class FilesystemPath
public java.lang.String toString()
toString
in class Path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |