|
||||||||||
| 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.DatastorePath
public class DatastorePath
| Field Summary | |
|---|---|
protected com.caucho.vfs.BindPath |
_bindRoot
|
protected DatastorePath |
_root
|
static boolean |
IS_USE_HASHMAP
|
| Fields inherited from class com.caucho.vfs.Path |
|---|
_pathSeparatorChar, _schemeMap, _separatorChar, L |
| Constructor Summary | |
|---|---|
protected |
DatastorePath(DatastorePath root,
java.lang.String pathname)
|
|
DatastorePath(java.lang.String path)
|
| Method Summary | |
|---|---|
static void |
dumpFiles()
|
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)
|
DatastoreFile |
getDatastoreFile()
|
EntityManager |
getEntityManager()
|
static DatastoreFile |
getFile(java.lang.String name)
|
java.lang.String |
getPath()
Returns the path. |
java.lang.String |
getScheme()
Returns the url scheme |
protected static void |
normalizePath(CharBuffer cb,
java.lang.String oldPath,
java.lang.String newPath,
int offset,
char separatorChar)
|
protected static java.lang.String |
normalizePath(java.lang.String oldPath,
java.lang.String newPath,
int offset,
char separatorChar)
|
DatastoreRandomAccessStream |
openRandomAccess()
Returns the stream implementation for a random-access stream. |
StreamImpl |
openReadImpl()
Returns the stream implementation for a read stream. |
StreamImpl |
openWriteImpl()
|
boolean |
remove()
Removes the file or directory named by this path. |
Path |
schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String filePath,
int offset)
Lookup the path, handling windows weirdness |
protected Path |
schemeWalkImpl(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String filePath,
int offset)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final boolean IS_USE_HASHMAP
protected DatastorePath _root
protected com.caucho.vfs.BindPath _bindRoot
| Constructor Detail |
|---|
public DatastorePath(java.lang.String path)
protected DatastorePath(DatastorePath root,
java.lang.String pathname)
| Method Detail |
|---|
public EntityManager getEntityManager()
public static DatastoreFile getFile(java.lang.String name)
public static void dumpFiles()
public java.lang.String getPath()
getPath in class Pathpublic boolean exists()
exists in class Path
public boolean remove()
throws java.io.IOException
remove in class Pathjava.io.IOExceptionpublic java.lang.String getScheme()
Path
getScheme in class Path
public StreamImpl openReadImpl()
throws java.io.IOException
openReadImpl in class Pathjava.io.IOException
public StreamImpl openWriteImpl()
throws java.io.IOException
openWriteImpl in class Pathjava.io.IOException
public DatastoreRandomAccessStream openRandomAccess()
throws java.io.IOException
openRandomAccess in class Pathjava.io.IOExceptionpublic DatastoreFile getDatastoreFile()
public Path schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String filePath,
int offset)
schemeWalk in class PathuserPath - the user's lookup() path.attributes - the attributes for the new path.filePath - the lookup() pathoffset - offset into newPath to start lookup.
protected Path schemeWalkImpl(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String filePath,
int offset)
public Path fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String path)
protected static java.lang.String normalizePath(java.lang.String oldPath,
java.lang.String newPath,
int offset,
char separatorChar)
protected static void normalizePath(CharBuffer cb,
java.lang.String oldPath,
java.lang.String newPath,
int offset,
char separatorChar)
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 | |||||||||