public class MemoryPath extends FilesystemPath
| Modifier and Type | Class and Description | 
|---|---|
class  | 
MemoryPath.MemoryStream  | 
Path.FileChannelFactory_bindRoot, _pathname, _root, _userPath_pathSeparatorChar, _schemeMap, _separatorChar| Modifier | Constructor and Description | 
|---|---|
  | 
MemoryPath()  | 
protected  | 
MemoryPath(FilesystemPath root,
          java.lang.String userPath,
          java.util.Map<java.lang.String,java.lang.Object> attributes,
          java.lang.String path)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canRead()
Tests if the file can be read. 
 | 
boolean | 
canWrite()
Tests if the file can be written. 
 | 
Path | 
copyCache()  | 
MemoryPath | 
copyDeep()  | 
boolean | 
equals(java.lang.Object o)  | 
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 a path relative to the current filesystem's root. 
 | 
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 url scheme 
 | 
java.lang.String | 
getURL()
Returns the full url for the given path. 
 | 
java.lang.Object | 
getValue()
Gets the object at the path. 
 | 
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. 
 | 
boolean | 
isObject()
Tests if the path refers to an object. 
 | 
boolean | 
isPathCacheable()
Returns true if the path itself is cacheable 
 | 
java.lang.String[] | 
list()  | 
boolean | 
mkdir()
Creates the directory named by this path. 
 | 
boolean | 
mkdirs()
Creates the directory named by this path and any parent directories. 
 | 
StreamImpl | 
openAppendImpl()  | 
StreamImpl | 
openReadImpl()  | 
StreamImpl | 
openWriteImpl()  | 
boolean | 
remove()
Removes the file or directory named by this path. 
 | 
boolean | 
renameTo(Path path)
Renames the file or directory to the name given by the path. 
 | 
boolean | 
setExecutable(boolean isExecutable)
Change the executable status of the of the path. 
 | 
void | 
setValue(java.lang.Object object)
Sets the object at the path. 
 | 
bind, createRoot, getFullPath, getParent, getPath, getRoot, getTail, getUserPath, hashCode, init, normalizePath, normalizePath, schemeWalk, setUserPathcacheCopy, canExecute, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, copy, createDepend, createLink, createNewFile, createRoot, createTempFile, escapeURL, fileChannelFactory, getAttribute, getAttributeNames, getBlockCount, getBlockSize, getCache, getCertificates, getContentType, getCrc64, getCreateTime, getDevice, getDeviceId, getDiskSpaceFree, getDiskSpaceTotal, getFileSeparatorChar, getGroup, getHost, getInode, getLastAccessTime, getLastStatusChangeTime, getMode, getNativePath, getNewlineString, getNumberOfLinks, getObject, getOwner, getPathSeparatorChar, getPort, getQuery, getRelativePath, getResources, getResources, getSchemeMap, getSeparatorChar, getUser, getUserDir, isBlockDevice, isCharacterDevice, isFIFO, isHardLink, isLink, isSocket, isSymbolicLink, isWindows, isWindowsInsecure, iterator, lookup, lookup, lookup, lookupChild, lookupImpl, lookupNative, lookupNative, lookupRelativeNativePath, openAppend, openFileRandomAccess, openMemoryMappedFile, openRandomAccess, openRead, openReadWrite, openReadWrite, openReadWrite, openReadWriteImpl, openWrite, putCache, readLink, realPath, removeAll, renameTo, scanScheme, sendfile, setDefaultSchemeMap, setLastModified, setObject, setTestWindows, toString, truncate, truncate, unbind, unwrap, writeToStream, writeToStreamprotected MemoryPath(FilesystemPath root, java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.String path)
public MemoryPath()
public Path fsWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.String path)
FilesystemPathfsWalk in class FilesystemPathuserPath - the exact string passed by the user's lookup()attributes - the user's new attributespath - the normalized real pathpublic java.lang.String getScheme()
Pathpublic java.lang.String getURL()
Pathpublic boolean isPathCacheable()
PathisPathCacheable in class Pathpublic boolean exists()
Pathpublic boolean isDirectory()
PathisDirectory in class Pathpublic boolean isFile()
Pathpublic boolean isObject()
Pathpublic boolean setExecutable(boolean isExecutable)
PathsetExecutable in class Pathpublic boolean isExecutable()
PathisExecutable in class Pathpublic long getLength()
Pathpublic long getLastModified()
PathgetLastModified in class Pathpublic boolean canRead()
Pathpublic boolean canWrite()
Pathpublic java.lang.String[] list()
public boolean mkdir()
Pathpublic boolean mkdirs()
Pathpublic boolean remove()
Pathpublic boolean renameTo(Path path)
Pathpublic StreamImpl openReadImpl() throws java.io.IOException
openReadImpl in class Pathjava.io.IOExceptionpublic StreamImpl openWriteImpl() throws java.io.IOException
openWriteImpl in class Pathjava.io.IOExceptionpublic StreamImpl openAppendImpl() throws java.io.IOException
openAppendImpl in class Pathjava.io.IOExceptionpublic java.lang.Object getValue()
                          throws java.io.IOException
PathA bean filesystem or a mime-type aware filesystem could deserialize the contents of the file.
public void setValue(java.lang.Object object)
              throws java.io.IOException
PathNormal filesystems will generally do nothing. However, a bean filesystem or a mime-type aware filesystem could serialize the object and store it.
public Path copyCache()
public MemoryPath copyDeep()
public boolean equals(java.lang.Object o)
equals in class FilesystemPath