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, writeToStream
public RepositoryPath(java.lang.String tagId, Path physicalRoot) throws java.io.IOException
java.io.IOException
protected RepositoryPath(RepositoryRoot repository, RepositoryPath root, Path physicalPath)
public java.lang.String getPath()
Path
public java.lang.String getScheme()
Path
public Path schemeWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String newPath, int offset)
Path
schemeWalk
in class Path
userPath
- 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()
Path
public boolean isFile()
Path
public boolean isDirectory()
Path
isDirectory
in class Path
public boolean canRead()
Path
public boolean canWrite()
Path
public long getLength()
Path
public long getLastModified()
Path
getLastModified
in class Path
public long getCreateTime()
Path
getCreateTime
in class Path
public long getLastAccessTime()
Path
getLastAccessTime
in class Path
public long getCrc64()
Path
public java.lang.String[] list() throws java.io.IOException
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException