public class URLPath extends Object implements net.thevpc.nuts.spi.NPathSPI
| Modifier and Type | Class and Description |
|---|---|
static class |
URLPath.URLPathFactory |
| Modifier and Type | Field and Description |
|---|---|
protected static net.thevpc.nuts.util.NLRUMap<URL,net.thevpc.nuts.util.NCachedSupplier<net.thevpc.nuts.runtime.standalone.io.path.spi.URLPath.CacheInfo>> |
cacheManager |
static Pattern |
MOSTLY_URL_PATTERN |
protected URL |
url |
| Modifier | Constructor and Description |
|---|---|
|
URLPath(URL url) |
protected |
URLPath(URL url,
boolean acceptNull) |
| Modifier and Type | Method and Description |
|---|---|
static File |
_toFile(URL url) |
void |
addPermissions(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPathPermission... permissions) |
net.thevpc.nuts.io.NPath |
asFilePath(net.thevpc.nuts.io.NPath basePath) |
long |
contentLength(net.thevpc.nuts.io.NPath basePath) |
void |
delete(net.thevpc.nuts.io.NPath basePath,
boolean recurse) |
boolean |
equals(Object o) |
boolean |
exists(net.thevpc.nuts.io.NPath basePath) |
net.thevpc.nuts.spi.NFormatSPI |
formatter(net.thevpc.nuts.io.NPath basePath) |
String |
getCharset(net.thevpc.nuts.io.NPath basePath) |
String |
getContentEncoding(net.thevpc.nuts.io.NPath basePath) |
String |
getContentType(net.thevpc.nuts.io.NPath basePath) |
Instant |
getCreationInstant(net.thevpc.nuts.io.NPath basePath) |
InputStream |
getInputStream(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPathOption... options) |
Instant |
getLastAccessInstant(net.thevpc.nuts.io.NPath basePath) |
Instant |
getLastModifiedInstant(net.thevpc.nuts.io.NPath basePath) |
String |
getLocation(net.thevpc.nuts.io.NPath basePath) |
String |
getName(net.thevpc.nuts.io.NPath basePath) |
Integer |
getNameCount(net.thevpc.nuts.io.NPath basePath) |
List<String> |
getNames(net.thevpc.nuts.io.NPath basePath) |
OutputStream |
getOutputStream(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPathOption... options) |
net.thevpc.nuts.io.NPath |
getParent(net.thevpc.nuts.io.NPath basePath) |
Set<net.thevpc.nuts.io.NPathPermission> |
getPermissions(net.thevpc.nuts.io.NPath basePath) |
String |
getProtocol(net.thevpc.nuts.io.NPath basePath) |
net.thevpc.nuts.io.NPath |
getRoot(net.thevpc.nuts.io.NPath basePath) |
static String |
getURLName(String path) |
static String |
getURLParentPath(String ppath) |
String |
group(net.thevpc.nuts.io.NPath basePath) |
int |
hashCode() |
boolean |
isAbsolute(net.thevpc.nuts.io.NPath basePath) |
boolean |
isLocal(net.thevpc.nuts.io.NPath basePath) |
Boolean |
isName(net.thevpc.nuts.io.NPath basePath) |
Boolean |
isRoot(net.thevpc.nuts.io.NPath basePath) |
net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> |
list(net.thevpc.nuts.io.NPath basePath) |
void |
mkdir(boolean parents,
net.thevpc.nuts.io.NPath basePath) |
boolean |
moveTo(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPath other,
net.thevpc.nuts.io.NPathOption... options) |
net.thevpc.nuts.io.NPath |
normalize(net.thevpc.nuts.io.NPath basePath) |
String |
owner(net.thevpc.nuts.io.NPath basePath) |
protected net.thevpc.nuts.io.NPath |
rebuildURLPath(String other) |
protected String |
rebuildURLString(String protocol,
String authority,
String file,
String ref) |
void |
removePermissions(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPathPermission... permissions) |
net.thevpc.nuts.io.NPath |
resolve(net.thevpc.nuts.io.NPath basePath,
String path) |
net.thevpc.nuts.io.NPath |
resolveSibling(net.thevpc.nuts.io.NPath basePath,
String path) |
void |
setPermissions(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPathPermission... permissions) |
net.thevpc.nuts.io.NPath |
subpath(net.thevpc.nuts.io.NPath basePath,
int beginIndex,
int endIndex) |
net.thevpc.nuts.io.NPath |
toAbsolute(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPath rootPath) |
net.thevpc.nuts.io.NPath |
toCompressedForm(net.thevpc.nuts.io.NPath basePath) |
net.thevpc.nuts.util.NOptional<Path> |
toPath(net.thevpc.nuts.io.NPath basePath) |
String |
toString() |
net.thevpc.nuts.util.NOptional<URL> |
toURL(net.thevpc.nuts.io.NPath basePath) |
net.thevpc.nuts.io.NPathType |
type(net.thevpc.nuts.io.NPath basePath) |
net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> |
walk(net.thevpc.nuts.io.NPath basePath,
int maxDepth,
net.thevpc.nuts.io.NPathOption[] options) |
public static final Pattern MOSTLY_URL_PATTERN
protected URL url
protected static final net.thevpc.nuts.util.NLRUMap<URL,net.thevpc.nuts.util.NCachedSupplier<net.thevpc.nuts.runtime.standalone.io.path.spi.URLPath.CacheInfo>> cacheManager
public URLPath(URL url)
protected URLPath(URL url, boolean acceptNull)
public String toString()
public net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> list(net.thevpc.nuts.io.NPath basePath)
list in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.spi.NFormatSPI formatter(net.thevpc.nuts.io.NPath basePath)
formatter in interface net.thevpc.nuts.spi.NPathSPIpublic String getName(net.thevpc.nuts.io.NPath basePath)
getName in interface net.thevpc.nuts.spi.NPathSPIpublic String getProtocol(net.thevpc.nuts.io.NPath basePath)
getProtocol in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPath resolve(net.thevpc.nuts.io.NPath basePath,
String path)
resolve in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPath resolveSibling(net.thevpc.nuts.io.NPath basePath,
String path)
resolveSibling in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPath toCompressedForm(net.thevpc.nuts.io.NPath basePath)
toCompressedForm in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.util.NOptional<URL> toURL(net.thevpc.nuts.io.NPath basePath)
toURL in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.util.NOptional<Path> toPath(net.thevpc.nuts.io.NPath basePath)
toPath in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPathType type(net.thevpc.nuts.io.NPath basePath)
type in interface net.thevpc.nuts.spi.NPathSPIpublic boolean isLocal(net.thevpc.nuts.io.NPath basePath)
isLocal in interface net.thevpc.nuts.spi.NPathSPIpublic boolean exists(net.thevpc.nuts.io.NPath basePath)
exists in interface net.thevpc.nuts.spi.NPathSPIpublic long contentLength(net.thevpc.nuts.io.NPath basePath)
contentLength in interface net.thevpc.nuts.spi.NPathSPIpublic String getContentEncoding(net.thevpc.nuts.io.NPath basePath)
getContentEncoding in interface net.thevpc.nuts.spi.NPathSPIpublic String getContentType(net.thevpc.nuts.io.NPath basePath)
getContentType in interface net.thevpc.nuts.spi.NPathSPIpublic String getCharset(net.thevpc.nuts.io.NPath basePath)
getCharset in interface net.thevpc.nuts.spi.NPathSPIpublic String getLocation(net.thevpc.nuts.io.NPath basePath)
getLocation in interface net.thevpc.nuts.spi.NPathSPIpublic InputStream getInputStream(net.thevpc.nuts.io.NPath basePath, net.thevpc.nuts.io.NPathOption... options)
getInputStream in interface net.thevpc.nuts.spi.NPathSPIpublic OutputStream getOutputStream(net.thevpc.nuts.io.NPath basePath, net.thevpc.nuts.io.NPathOption... options)
getOutputStream in interface net.thevpc.nuts.spi.NPathSPIpublic void delete(net.thevpc.nuts.io.NPath basePath,
boolean recurse)
delete in interface net.thevpc.nuts.spi.NPathSPIpublic void mkdir(boolean parents,
net.thevpc.nuts.io.NPath basePath)
mkdir in interface net.thevpc.nuts.spi.NPathSPIpublic Instant getLastModifiedInstant(net.thevpc.nuts.io.NPath basePath)
getLastModifiedInstant in interface net.thevpc.nuts.spi.NPathSPIpublic Instant getLastAccessInstant(net.thevpc.nuts.io.NPath basePath)
getLastAccessInstant in interface net.thevpc.nuts.spi.NPathSPIpublic Instant getCreationInstant(net.thevpc.nuts.io.NPath basePath)
getCreationInstant in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPath getParent(net.thevpc.nuts.io.NPath basePath)
getParent in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPath toAbsolute(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPath rootPath)
toAbsolute in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPath normalize(net.thevpc.nuts.io.NPath basePath)
normalize in interface net.thevpc.nuts.spi.NPathSPIpublic boolean isAbsolute(net.thevpc.nuts.io.NPath basePath)
isAbsolute in interface net.thevpc.nuts.spi.NPathSPIpublic String owner(net.thevpc.nuts.io.NPath basePath)
owner in interface net.thevpc.nuts.spi.NPathSPIpublic String group(net.thevpc.nuts.io.NPath basePath)
group in interface net.thevpc.nuts.spi.NPathSPIpublic Set<net.thevpc.nuts.io.NPathPermission> getPermissions(net.thevpc.nuts.io.NPath basePath)
getPermissions in interface net.thevpc.nuts.spi.NPathSPIpublic void setPermissions(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPathPermission... permissions)
setPermissions in interface net.thevpc.nuts.spi.NPathSPIpublic void addPermissions(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPathPermission... permissions)
addPermissions in interface net.thevpc.nuts.spi.NPathSPIpublic void removePermissions(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPathPermission... permissions)
removePermissions in interface net.thevpc.nuts.spi.NPathSPIpublic Boolean isName(net.thevpc.nuts.io.NPath basePath)
isName in interface net.thevpc.nuts.spi.NPathSPIpublic Integer getNameCount(net.thevpc.nuts.io.NPath basePath)
getNameCount in interface net.thevpc.nuts.spi.NPathSPIpublic Boolean isRoot(net.thevpc.nuts.io.NPath basePath)
isRoot in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPath getRoot(net.thevpc.nuts.io.NPath basePath)
getRoot in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> walk(net.thevpc.nuts.io.NPath basePath,
int maxDepth,
net.thevpc.nuts.io.NPathOption[] options)
walk in interface net.thevpc.nuts.spi.NPathSPIpublic net.thevpc.nuts.io.NPath subpath(net.thevpc.nuts.io.NPath basePath,
int beginIndex,
int endIndex)
subpath in interface net.thevpc.nuts.spi.NPathSPIpublic List<String> getNames(net.thevpc.nuts.io.NPath basePath)
getNames in interface net.thevpc.nuts.spi.NPathSPIpublic boolean moveTo(net.thevpc.nuts.io.NPath basePath,
net.thevpc.nuts.io.NPath other,
net.thevpc.nuts.io.NPathOption... options)
moveTo in interface net.thevpc.nuts.spi.NPathSPIprotected net.thevpc.nuts.io.NPath rebuildURLPath(String other)
protected String rebuildURLString(String protocol, String authority, String file, String ref)
public net.thevpc.nuts.io.NPath asFilePath(net.thevpc.nuts.io.NPath basePath)
Copyright © 2025 vpc open source initiative. All rights reserved.