public class GenericFilePath extends Object implements net.thevpc.nuts.spi.NutsPathSPI
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericFilePath.GenericPathFactory |
| Constructor and Description |
|---|
GenericFilePath(String value,
net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermissions(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPathPermission... permissions) |
void |
copyTo(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath other,
net.thevpc.nuts.NutsPathOption... options) |
void |
delete(net.thevpc.nuts.NutsPath basePath,
boolean recurse) |
boolean |
equals(Object o) |
boolean |
exists(net.thevpc.nuts.NutsPath basePath) |
net.thevpc.nuts.spi.NutsFormatSPI |
formatter(net.thevpc.nuts.NutsPath basePath) |
String |
getContentEncoding(net.thevpc.nuts.NutsPath basePath) |
long |
getContentLength(net.thevpc.nuts.NutsPath basePath) |
String |
getContentType(net.thevpc.nuts.NutsPath basePath) |
Instant |
getCreationInstant(net.thevpc.nuts.NutsPath basePath) |
InputStream |
getInputStream(net.thevpc.nuts.NutsPath basePath) |
String[] |
getItems(net.thevpc.nuts.NutsPath basePath) |
Instant |
getLastAccessInstant(net.thevpc.nuts.NutsPath basePath) |
Instant |
getLastModifiedInstant(net.thevpc.nuts.NutsPath basePath) |
String |
getLocation(net.thevpc.nuts.NutsPath basePath) |
String |
getName(net.thevpc.nuts.NutsPath basePath) |
OutputStream |
getOutputStream(net.thevpc.nuts.NutsPath basePath) |
net.thevpc.nuts.NutsPath |
getParent(net.thevpc.nuts.NutsPath basePath) |
int |
getPathCount(net.thevpc.nuts.NutsPath basePath) |
Set<net.thevpc.nuts.NutsPathPermission> |
getPermissions(net.thevpc.nuts.NutsPath basePath) |
String |
getProtocol(net.thevpc.nuts.NutsPath basePath) |
net.thevpc.nuts.NutsPath |
getRoot(net.thevpc.nuts.NutsPath basePath) |
net.thevpc.nuts.NutsSession |
getSession() |
String |
group(net.thevpc.nuts.NutsPath basePath) |
int |
hashCode() |
boolean |
isAbsolute(net.thevpc.nuts.NutsPath basePath) |
boolean |
isDirectory(net.thevpc.nuts.NutsPath basePath) |
boolean |
isLocal(net.thevpc.nuts.NutsPath basePath) |
boolean |
isName(net.thevpc.nuts.NutsPath basePath) |
boolean |
isOther(net.thevpc.nuts.NutsPath basePath) |
boolean |
isRegularFile(net.thevpc.nuts.NutsPath basePath) |
boolean |
isRoot(net.thevpc.nuts.NutsPath basePath) |
boolean |
isSymbolicLink(net.thevpc.nuts.NutsPath basePath) |
net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> |
list(net.thevpc.nuts.NutsPath basePath) |
void |
mkdir(boolean parents,
net.thevpc.nuts.NutsPath basePath) |
void |
moveTo(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath other,
net.thevpc.nuts.NutsPathOption... options) |
net.thevpc.nuts.NutsPath |
normalize(net.thevpc.nuts.NutsPath basePath) |
String |
owner(net.thevpc.nuts.NutsPath basePath) |
void |
removePermissions(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPathPermission... permissions) |
net.thevpc.nuts.NutsPath |
resolve(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath path) |
net.thevpc.nuts.NutsPath |
resolve(net.thevpc.nuts.NutsPath basePath,
String path) |
net.thevpc.nuts.NutsPath |
resolveSibling(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath path) |
net.thevpc.nuts.NutsPath |
resolveSibling(net.thevpc.nuts.NutsPath basePath,
String path) |
void |
setPermissions(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPathPermission... permissions) |
net.thevpc.nuts.NutsPath |
subpath(net.thevpc.nuts.NutsPath basePath,
int beginIndex,
int endIndex) |
net.thevpc.nuts.NutsPath |
toAbsolute(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath rootPath) |
net.thevpc.nuts.NutsPath |
toCompressedForm(net.thevpc.nuts.NutsPath basePath) |
Path |
toFile(net.thevpc.nuts.NutsPath basePath) |
net.thevpc.nuts.NutsPath |
toRelativePath(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath parentPath) |
String |
toString() |
URL |
toURL(net.thevpc.nuts.NutsPath basePath) |
net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> |
walk(net.thevpc.nuts.NutsPath basePath,
int maxDepth,
net.thevpc.nuts.NutsPathOption[] options) |
void |
walkDfs(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsTreeVisitor<net.thevpc.nuts.NutsPath> visitor,
int maxDepth,
net.thevpc.nuts.NutsPathOption... options) |
public GenericFilePath(String value, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> list(net.thevpc.nuts.NutsPath basePath)
list in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.spi.NutsFormatSPI formatter(net.thevpc.nuts.NutsPath basePath)
formatter in interface net.thevpc.nuts.spi.NutsPathSPIpublic String getName(net.thevpc.nuts.NutsPath basePath)
getName in interface net.thevpc.nuts.spi.NutsPathSPIpublic String getProtocol(net.thevpc.nuts.NutsPath basePath)
getProtocol in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath resolve(net.thevpc.nuts.NutsPath basePath,
String path)
resolve in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath resolve(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath path)
resolve in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath resolveSibling(net.thevpc.nuts.NutsPath basePath,
String path)
resolveSibling in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath resolveSibling(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath path)
resolveSibling in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath toCompressedForm(net.thevpc.nuts.NutsPath basePath)
toCompressedForm in interface net.thevpc.nuts.spi.NutsPathSPIpublic URL toURL(net.thevpc.nuts.NutsPath basePath)
toURL in interface net.thevpc.nuts.spi.NutsPathSPIpublic Path toFile(net.thevpc.nuts.NutsPath basePath)
toFile in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean isSymbolicLink(net.thevpc.nuts.NutsPath basePath)
isSymbolicLink in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean isOther(net.thevpc.nuts.NutsPath basePath)
isOther in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean isDirectory(net.thevpc.nuts.NutsPath basePath)
isDirectory in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean isRegularFile(net.thevpc.nuts.NutsPath basePath)
isRegularFile in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean exists(net.thevpc.nuts.NutsPath basePath)
exists in interface net.thevpc.nuts.spi.NutsPathSPIpublic long getContentLength(net.thevpc.nuts.NutsPath basePath)
getContentLength in interface net.thevpc.nuts.spi.NutsPathSPIpublic String getContentEncoding(net.thevpc.nuts.NutsPath basePath)
getContentEncoding in interface net.thevpc.nuts.spi.NutsPathSPIpublic String getContentType(net.thevpc.nuts.NutsPath basePath)
getContentType in interface net.thevpc.nuts.spi.NutsPathSPIpublic String getLocation(net.thevpc.nuts.NutsPath basePath)
getLocation in interface net.thevpc.nuts.spi.NutsPathSPIpublic InputStream getInputStream(net.thevpc.nuts.NutsPath basePath)
getInputStream in interface net.thevpc.nuts.spi.NutsPathSPIpublic OutputStream getOutputStream(net.thevpc.nuts.NutsPath basePath)
getOutputStream in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.spi.NutsPathSPIpublic void delete(net.thevpc.nuts.NutsPath basePath,
boolean recurse)
delete in interface net.thevpc.nuts.spi.NutsPathSPIpublic void mkdir(boolean parents,
net.thevpc.nuts.NutsPath basePath)
mkdir in interface net.thevpc.nuts.spi.NutsPathSPIpublic Instant getLastModifiedInstant(net.thevpc.nuts.NutsPath basePath)
getLastModifiedInstant in interface net.thevpc.nuts.spi.NutsPathSPIpublic Instant getLastAccessInstant(net.thevpc.nuts.NutsPath basePath)
getLastAccessInstant in interface net.thevpc.nuts.spi.NutsPathSPIpublic Instant getCreationInstant(net.thevpc.nuts.NutsPath basePath)
getCreationInstant in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath getParent(net.thevpc.nuts.NutsPath basePath)
getParent in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath toAbsolute(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath rootPath)
toAbsolute in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath normalize(net.thevpc.nuts.NutsPath basePath)
normalize in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean isAbsolute(net.thevpc.nuts.NutsPath basePath)
isAbsolute in interface net.thevpc.nuts.spi.NutsPathSPIpublic String owner(net.thevpc.nuts.NutsPath basePath)
owner in interface net.thevpc.nuts.spi.NutsPathSPIpublic String group(net.thevpc.nuts.NutsPath basePath)
group in interface net.thevpc.nuts.spi.NutsPathSPIpublic Set<net.thevpc.nuts.NutsPathPermission> getPermissions(net.thevpc.nuts.NutsPath basePath)
getPermissions in interface net.thevpc.nuts.spi.NutsPathSPIpublic void setPermissions(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPathPermission... permissions)
setPermissions in interface net.thevpc.nuts.spi.NutsPathSPIpublic void addPermissions(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPathPermission... permissions)
addPermissions in interface net.thevpc.nuts.spi.NutsPathSPIpublic void removePermissions(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPathPermission... permissions)
removePermissions in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean isName(net.thevpc.nuts.NutsPath basePath)
isName in interface net.thevpc.nuts.spi.NutsPathSPIpublic int getPathCount(net.thevpc.nuts.NutsPath basePath)
getPathCount in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean isRoot(net.thevpc.nuts.NutsPath basePath)
isRoot in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> walk(net.thevpc.nuts.NutsPath basePath,
int maxDepth,
net.thevpc.nuts.NutsPathOption[] options)
walk in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath subpath(net.thevpc.nuts.NutsPath basePath,
int beginIndex,
int endIndex)
subpath in interface net.thevpc.nuts.spi.NutsPathSPIpublic String[] getItems(net.thevpc.nuts.NutsPath basePath)
getItems in interface net.thevpc.nuts.spi.NutsPathSPIpublic String toString()
public void moveTo(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath other,
net.thevpc.nuts.NutsPathOption... options)
moveTo in interface net.thevpc.nuts.spi.NutsPathSPIpublic void copyTo(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath other,
net.thevpc.nuts.NutsPathOption... options)
copyTo in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath getRoot(net.thevpc.nuts.NutsPath basePath)
getRoot in interface net.thevpc.nuts.spi.NutsPathSPIpublic void walkDfs(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsTreeVisitor<net.thevpc.nuts.NutsPath> visitor,
int maxDepth,
net.thevpc.nuts.NutsPathOption... options)
walkDfs in interface net.thevpc.nuts.spi.NutsPathSPIpublic boolean isLocal(net.thevpc.nuts.NutsPath basePath)
isLocal in interface net.thevpc.nuts.spi.NutsPathSPIpublic net.thevpc.nuts.NutsPath toRelativePath(net.thevpc.nuts.NutsPath basePath,
net.thevpc.nuts.NutsPath parentPath)
toRelativePath in interface net.thevpc.nuts.spi.NutsPathSPICopyright © 2022 vpc open source initiative. All rights reserved.