public class NutsCompressedPath extends NutsPathBase
| Constructor and Description |
|---|
NutsCompressedPath(net.thevpc.nuts.NutsPath base) |
NutsCompressedPath(net.thevpc.nuts.NutsPath base,
String compressedForm,
net.thevpc.nuts.NutsString formattedCompressedForm) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NutsPath |
addPermissions(net.thevpc.nuts.NutsPathPermission... permissions) |
static String |
compressPath(String path) |
static String |
compressPath(String path,
int left,
int right) |
static String |
compressUrl(String path) |
void |
copyTo(net.thevpc.nuts.NutsPath other,
net.thevpc.nuts.NutsPathOption... options) |
net.thevpc.nuts.NutsPath |
delete(boolean recurse) |
net.thevpc.nuts.NutsPath |
deleteTree() |
boolean |
exists() |
net.thevpc.nuts.NutsPath |
expandPath(Function<String,String> resolver) |
net.thevpc.nuts.NutsFormat |
formatter() |
String |
getContentEncoding() |
long |
getContentLength() |
String |
getContentType() |
Instant |
getCreationInstant() |
InputStream |
getInputStream() |
String |
getItem(int index) |
String[] |
getItems() |
Instant |
getLastAccessInstant() |
Instant |
getLastModifiedInstant() |
String |
getLocation() |
String |
getName() |
OutputStream |
getOutputStream() |
net.thevpc.nuts.NutsPath |
getParent() |
int |
getPathCount() |
Set<net.thevpc.nuts.NutsPathPermission> |
getPermissions() |
String |
getProtocol() |
net.thevpc.nuts.NutsPath |
getRoot() |
net.thevpc.nuts.NutsStreamMetadata |
getStreamMetadata() |
String |
group() |
boolean |
isAbsolute() |
boolean |
isDirectory() |
boolean |
isLocal() |
boolean |
isName() |
boolean |
isOther() |
boolean |
isRegularFile() |
boolean |
isRemote() |
boolean |
isRoot() |
boolean |
isSymbolicLink() |
net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> |
list() |
net.thevpc.nuts.NutsPath |
mkdir() |
net.thevpc.nuts.NutsPath |
mkdir(boolean parents) |
net.thevpc.nuts.NutsPath |
mkdirs() |
net.thevpc.nuts.NutsPath |
mkParentDirs() |
void |
moveTo(net.thevpc.nuts.NutsPath other,
net.thevpc.nuts.NutsPathOption... options) |
net.thevpc.nuts.NutsPath |
normalize() |
String |
owner() |
byte[] |
readAllBytes() |
net.thevpc.nuts.NutsPath |
removePermissions(net.thevpc.nuts.NutsPathPermission... permissions) |
net.thevpc.nuts.NutsPath |
resolve(net.thevpc.nuts.NutsPath other) |
net.thevpc.nuts.NutsPath |
resolve(String other) |
net.thevpc.nuts.NutsPath |
resolveSibling(net.thevpc.nuts.NutsPath other) |
net.thevpc.nuts.NutsPath |
resolveSibling(String other) |
net.thevpc.nuts.NutsPath |
setPermissions(net.thevpc.nuts.NutsPathPermission... permissions) |
net.thevpc.nuts.NutsPath |
subpath(int beginIndex,
int endIndex) |
net.thevpc.nuts.NutsPath |
toAbsolute() |
net.thevpc.nuts.NutsPath |
toAbsolute(net.thevpc.nuts.NutsPath basePath) |
net.thevpc.nuts.NutsPath |
toAbsolute(String basePath) |
net.thevpc.nuts.NutsPath |
toCompressedForm() |
Path |
toFile() |
net.thevpc.nuts.NutsPath |
toRelativePath(net.thevpc.nuts.NutsPath basePath) |
String |
toString() |
URL |
toURL() |
net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> |
walk(int maxDepth,
net.thevpc.nuts.NutsPathOption[] options) |
net.thevpc.nuts.NutsPath |
walkDfs(net.thevpc.nuts.NutsTreeVisitor<net.thevpc.nuts.NutsPath> visitor,
int maxDepth,
net.thevpc.nuts.NutsPathOption... options) |
net.thevpc.nuts.NutsPath |
walkDfs(net.thevpc.nuts.NutsTreeVisitor<net.thevpc.nuts.NutsPath> visitor,
net.thevpc.nuts.NutsPathOption... options) |
net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> |
walkGlob(net.thevpc.nuts.NutsPathOption... options) |
net.thevpc.nuts.NutsPath |
writeBytes(byte[] bytes) |
asFile, asURL, delete, equals, getBaseName, getFullExtension, getLastExtension, getReader, getSession, getUserKind, getWriter, hashCode, head, isFile, isHttp, isURL, lines, setUserKind, tail, toNutsString, walk, walk, walkclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic NutsCompressedPath(net.thevpc.nuts.NutsPath base)
public NutsCompressedPath(net.thevpc.nuts.NutsPath base,
String compressedForm,
net.thevpc.nuts.NutsString formattedCompressedForm)
public String getContentEncoding()
public String getContentType()
public String getName()
public String getLocation()
public net.thevpc.nuts.NutsPath resolve(String other)
public net.thevpc.nuts.NutsPath resolve(net.thevpc.nuts.NutsPath other)
public net.thevpc.nuts.NutsPath resolveSibling(String other)
public net.thevpc.nuts.NutsPath resolveSibling(net.thevpc.nuts.NutsPath other)
public byte[] readAllBytes()
public net.thevpc.nuts.NutsPath writeBytes(byte[] bytes)
public String getProtocol()
public net.thevpc.nuts.NutsPath toCompressedForm()
public URL toURL()
public Path toFile()
public net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> list()
public InputStream getInputStream()
public OutputStream getOutputStream()
public net.thevpc.nuts.NutsPath deleteTree()
public net.thevpc.nuts.NutsPath delete(boolean recurse)
public net.thevpc.nuts.NutsPath mkdir(boolean parents)
public net.thevpc.nuts.NutsPath mkdirs()
public net.thevpc.nuts.NutsPath mkdir()
public net.thevpc.nuts.NutsPath mkParentDirs()
public boolean isOther()
public boolean isSymbolicLink()
public boolean isDirectory()
public boolean isRegularFile()
public boolean isRemote()
public boolean isLocal()
public boolean exists()
public long getContentLength()
public Instant getLastModifiedInstant()
public Instant getLastAccessInstant()
public Instant getCreationInstant()
public net.thevpc.nuts.NutsPath getParent()
public boolean isAbsolute()
public net.thevpc.nuts.NutsPath normalize()
public net.thevpc.nuts.NutsPath toAbsolute()
public net.thevpc.nuts.NutsPath toAbsolute(String basePath)
public net.thevpc.nuts.NutsPath toAbsolute(net.thevpc.nuts.NutsPath basePath)
public net.thevpc.nuts.NutsPath toRelativePath(net.thevpc.nuts.NutsPath basePath)
public String owner()
public String group()
public Set<net.thevpc.nuts.NutsPathPermission> getPermissions()
public net.thevpc.nuts.NutsPath setPermissions(net.thevpc.nuts.NutsPathPermission... permissions)
public net.thevpc.nuts.NutsPath addPermissions(net.thevpc.nuts.NutsPathPermission... permissions)
public net.thevpc.nuts.NutsPath removePermissions(net.thevpc.nuts.NutsPathPermission... permissions)
public boolean isName()
public int getPathCount()
public boolean isRoot()
public net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> walk(int maxDepth,
net.thevpc.nuts.NutsPathOption[] options)
public net.thevpc.nuts.NutsPath subpath(int beginIndex,
int endIndex)
public String getItem(int index)
public String[] getItems()
public void moveTo(net.thevpc.nuts.NutsPath other,
net.thevpc.nuts.NutsPathOption... options)
public void copyTo(net.thevpc.nuts.NutsPath other,
net.thevpc.nuts.NutsPathOption... options)
public net.thevpc.nuts.NutsPath getRoot()
public net.thevpc.nuts.NutsPath walkDfs(net.thevpc.nuts.NutsTreeVisitor<net.thevpc.nuts.NutsPath> visitor,
net.thevpc.nuts.NutsPathOption... options)
public net.thevpc.nuts.NutsPath walkDfs(net.thevpc.nuts.NutsTreeVisitor<net.thevpc.nuts.NutsPath> visitor,
int maxDepth,
net.thevpc.nuts.NutsPathOption... options)
public net.thevpc.nuts.NutsStream<net.thevpc.nuts.NutsPath> walkGlob(net.thevpc.nuts.NutsPathOption... options)
public String toString()
public net.thevpc.nuts.NutsFormat formatter()
formatter in interface net.thevpc.nuts.NutsFormattableformatter in class NutsPathBasepublic net.thevpc.nuts.NutsStreamMetadata getStreamMetadata()
Copyright © 2022 vpc open source initiative. All rights reserved.