Path.FileChannelFactory_pathSeparatorChar, _schemeMap, _separatorChar| Modifier | Constructor and Description |
|---|---|
protected |
RepositoryPath(RepositoryRoot repository,
RepositoryPath root,
Path physicalPath) |
|
RepositoryPath(java.lang.String tagId,
Path physicalRoot) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead()
Tests if the file can be read.
|
boolean |
canWrite()
Tests if the file can be written.
|
boolean |
exists()
Tests if the file exists.
|
long |
getCrc64()
Returns the crc64 code.
|
long |
getCreateTime()
Returns the create time of the file.
|
long |
getLastAccessTime()
Returns the last access time of the file.
|
long |
getLastModified()
Returns the last modified time of the file.
|
long |
getLength()
Returns the length of the file in bytes.
|
java.lang.String |
getPath()
Returns the path.
|
java.lang.String |
getScheme()
Returns the url scheme
|
boolean |
isDirectory()
Tests if the path refers to a directory.
|
boolean |
isFile()
Tests if the path refers to a file.
|
java.lang.String[] |
list() |
StreamImpl |
openReadImpl() |
Path |
schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String newPath,
int offset)
Path-specific lookup.
|
Path |
unwrap() |
bind, cacheCopy, canExecute, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, copy, createDepend, createLink, createNewFile, createRoot, createRoot, createTempFile, equals, escapeURL, fileChannelFactory, getAttribute, getAttributeNames, getBlockCount, getBlockSize, getCache, getCertificates, getContentType, getDevice, getDeviceId, getDiskSpaceFree, getDiskSpaceTotal, getFileSeparatorChar, getFullPath, getGroup, getHost, getInode, getLastStatusChangeTime, getMode, getNativePath, getNewlineString, getNumberOfLinks, getObject, getOwner, getParent, getPathSeparatorChar, getPort, getQuery, getRelativePath, getResources, getResources, getSchemeMap, getSeparatorChar, getTail, getURL, getUser, getUserDir, getUserPath, getValue, hashCode, isBlockDevice, isCharacterDevice, isExecutable, isFIFO, isHardLink, isLink, isObject, isPathCacheable, isSocket, isSymbolicLink, isWindows, isWindowsInsecure, iterator, lookup, lookup, lookup, lookupChild, lookupImpl, lookupNative, lookupNative, lookupRelativeNativePath, mkdir, mkdirs, openAppend, openAppendImpl, openFileRandomAccess, openMemoryMappedFile, openRandomAccess, openRead, openReadWrite, openReadWrite, openReadWrite, openReadWriteImpl, openWrite, openWriteImpl, putCache, readLink, realPath, remove, removeAll, renameTo, renameTo, scanScheme, sendfile, setDefaultSchemeMap, setExecutable, setLastModified, setObject, setTestWindows, setUserPath, setValue, toString, truncate, truncate, unbind, writeToStream, writeToStreampublic RepositoryPath(java.lang.String tagId,
Path physicalRoot)
throws java.io.IOException
java.io.IOExceptionprotected RepositoryPath(RepositoryRoot repository, RepositoryPath root, Path physicalPath)
public java.lang.String getPath()
Pathpublic java.lang.String getScheme()
Pathpublic Path schemeWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String newPath, int offset)
PathschemeWalk in class PathuserPath - the user's lookup() path.newAttributes - the attributes for the new path.newPath - the lookup() pathoffset - offset into newPath to start lookup.public boolean exists()
Pathpublic boolean isFile()
Pathpublic boolean isDirectory()
PathisDirectory in class Pathpublic boolean canRead()
Pathpublic boolean canWrite()
Pathpublic long getLength()
Pathpublic long getLastModified()
PathgetLastModified in class Pathpublic long getCreateTime()
PathgetCreateTime in class Pathpublic long getLastAccessTime()
PathgetLastAccessTime in class Pathpublic long getCrc64()
Pathpublic java.lang.String[] list()
throws java.io.IOException
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl in class Pathjava.io.IOException