Path.FileChannelFactory
Modifier and Type | Field and Description |
---|---|
protected com.caucho.vfs.BindPath |
_bindRoot |
protected DatastorePath |
_root |
static boolean |
IS_USE_HASHMAP |
_pathSeparatorChar, _schemeMap, _separatorChar, L
Modifier | Constructor and Description |
---|---|
protected |
DatastorePath(DatastorePath root,
java.lang.String pathname) |
|
DatastorePath(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
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() |
bind, cacheCopy, canExecute, canRead, canWrite, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, copy, createDepend, createLink, createNewFile, createRoot, createRoot, createTempFile, equals, escapeURL, fileChannelFactory, getAttribute, getAttributeNames, getBlockCount, getBlockSize, getCache, getCertificates, getContentType, getCrc64, getCreateTime, getDevice, getDeviceId, getDiskSpaceFree, getDiskSpaceTotal, getFileSeparatorChar, getFullPath, getGroup, getHost, getInode, getLastAccessTime, getLastModified, getLastStatusChangeTime, getLength, getMode, getNativePath, getNewlineString, getNumberOfLinks, getObject, getOwner, getParent, getPathSeparatorChar, getPort, getQuery, getRelativePath, getResources, getResources, getSchemeMap, getSeparatorChar, getTail, getURL, getUser, getUserDir, getUserPath, getValue, hashCode, isBlockDevice, isCharacterDevice, isDirectory, isExecutable, isFIFO, isFile, isHardLink, isLink, isObject, isPathCacheable, isSocket, isSymbolicLink, isWindows, isWindowsInsecure, iterator, list, lookup, lookup, lookup, lookupChild, lookupImpl, lookupNative, lookupNative, lookupRelativeNativePath, mkdir, mkdirs, openAppend, openAppendImpl, openFileRandomAccess, openMemoryMappedFile, openRead, openReadWrite, openReadWrite, openReadWrite, openReadWriteImpl, openWrite, putCache, readLink, realPath, removeAll, renameTo, renameTo, scanScheme, sendfile, setDefaultSchemeMap, setExecutable, setLastModified, setObject, setTestWindows, setUserPath, setValue, truncate, truncate, unbind, unwrap, writeToStream, writeToStream
public static final boolean IS_USE_HASHMAP
protected DatastorePath _root
protected com.caucho.vfs.BindPath _bindRoot
public DatastorePath(java.lang.String path)
protected DatastorePath(DatastorePath root, java.lang.String pathname)
public EntityManager getEntityManager()
public static DatastoreFile getFile(java.lang.String name)
public static void dumpFiles()
public java.lang.String getPath()
public boolean remove() throws java.io.IOException
public java.lang.String getScheme()
Path
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException
public StreamImpl openWriteImpl() throws java.io.IOException
openWriteImpl
in class Path
java.io.IOException
public DatastoreRandomAccessStream openRandomAccess() throws java.io.IOException
openRandomAccess
in class Path
java.io.IOException
public 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 Path
userPath
- 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)