public abstract class NPathBase extends AbstractMultiReadNInputSource implements net.thevpc.nuts.io.NPath, net.thevpc.nuts.spi.NPathSPIAware
| Modifier and Type | Class and Description |
|---|---|
static class |
NPathBase.PathFormat |
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
NPathBase() |
| Modifier and Type | Method and Description |
|---|---|
protected net.thevpc.nuts.io.NPath |
copyExtraFrom(net.thevpc.nuts.io.NPath other) |
void |
copyFrom(net.thevpc.nuts.io.NPath other,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyFromInputStream(InputStream other,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyFromInputStreamProvider(net.thevpc.nuts.io.NInputStreamProvider other,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyFromReader(Reader other,
Charset charset,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyFromReader(Reader other,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyToOutputStream(OutputStream other,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyToPrintStream(PrintStream other,
Charset cs,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyToPrintStream(PrintStream other,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyToWriter(Writer other,
Charset cs,
net.thevpc.nuts.io.NPathOption... options) |
void |
copyToWriter(Writer other,
net.thevpc.nuts.io.NPathOption... options) |
net.thevpc.nuts.io.NPath |
delete() |
void |
dispose() |
boolean |
equals(Object o) |
BufferedReader |
getBufferedReader(Charset cs,
net.thevpc.nuts.io.NPathOption... options) |
BufferedReader |
getBufferedReader(net.thevpc.nuts.io.NPathOption... options) |
BufferedWriter |
getBufferedWriter() |
BufferedWriter |
getBufferedWriter(Charset charset,
net.thevpc.nuts.io.NPathOption... options) |
BufferedWriter |
getBufferedWriter(net.thevpc.nuts.io.NPathOption... options) |
byte[] |
getDigest(String algo) |
InputStream |
getInputStream() |
net.thevpc.nuts.io.NContentMetadata |
getMetaData() |
net.thevpc.nuts.io.NPathNameParts |
getNameParts() |
net.thevpc.nuts.io.NPathNameParts |
getNameParts(net.thevpc.nuts.io.NPathExtensionType type) |
net.thevpc.nuts.io.NPrintStream |
getNPrintStream(net.thevpc.nuts.io.NPathOption... options) |
OutputStream |
getOutputStream() |
PrintStream |
getPrintStream() |
PrintStream |
getPrintStream(Charset cs,
net.thevpc.nuts.io.NPathOption... options) |
PrintStream |
getPrintStream(net.thevpc.nuts.io.NPathOption... options) |
Reader |
getReader(Charset cs,
net.thevpc.nuts.io.NPathOption... options) |
Reader |
getReader(net.thevpc.nuts.io.NPathOption... options) |
net.thevpc.nuts.io.NPathNameParts |
getSmartFileNameParts() |
Writer |
getWriter() |
Writer |
getWriter(Charset charset,
net.thevpc.nuts.io.NPathOption... options) |
Writer |
getWriter(net.thevpc.nuts.io.NPathOption... options) |
int |
hashCode() |
boolean |
isDeleteOnDispose() |
boolean |
isFile() |
boolean |
isHttp() |
boolean |
isKnownContentLength() |
boolean |
isMultiRead() |
boolean |
isURL() |
boolean |
isUserCache() |
boolean |
isUserTemporary() |
List<net.thevpc.nuts.io.NPath> |
list() |
String |
readString(Charset cs,
net.thevpc.nuts.io.NPathOption... options) |
String |
readString(net.thevpc.nuts.io.NPathOption... options) |
net.thevpc.nuts.io.NPath |
resolveSiblingWithExtension(String extension) |
net.thevpc.nuts.io.NPath |
resolveSiblingWithExtension(String extension,
net.thevpc.nuts.io.NPathExtensionType type) |
void |
setDeleteOnDispose(boolean deleteOnDispose) |
net.thevpc.nuts.io.NPath |
setUserCache(boolean userCache) |
net.thevpc.nuts.io.NPath |
setUserTemporary(boolean temporary) |
net.thevpc.nuts.text.NText |
toNutsString() |
protected static net.thevpc.nuts.io.NPath |
unwrapPath(net.thevpc.nuts.io.NPath other) |
net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> |
walk() |
net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> |
walk(int maxDepth) |
net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> |
walk(net.thevpc.nuts.io.NPathOption... options) |
net.thevpc.nuts.io.NPath |
writeString(String string,
Charset cs,
net.thevpc.nuts.io.NPathOption... options) |
net.thevpc.nuts.io.NPath |
writeString(String string,
net.thevpc.nuts.io.NPathOption... options) |
getBufferedReader, getBufferedReader, getCharset, getContentType, getDigest, getDigestString, getDigestString, getName, getReader, getReader, head, head, lines, lines, nonNullCharset, readBytes, readString, reversedLines, reversedLines, tail, tailclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddPermissions, compareTo, contentEncoding, contentLength, copy, copyTo, delete, deleteTree, ensureEmptyDirectory, ensureEmptyFile, exists, expandPath, getContentType, getCreationInstant, getInputStream, getLocation, getName, getName, getNameCount, getNames, getOutputStream, getParent, getPermissions, getProtocol, getRoot, group, isAbsolute, isDirectory, isEqOrDeepChildOf, isLocal, isName, isOther, isRegularFile, isRemote, isRoot, isSymbolicLink, lastAccessInstant, lastModifiedInstant, listDigestInfo, listDigestInfo, listStringDigestInfo, listStringDigestInfo, mkdir, mkdir, mkdirs, mkParentDirs, moveTo, normalize, of, of, of, of, of, of, of, ofSystemStore, ofTempFile, ofTempFile, ofTempFolder, ofTempFolder, ofTempIdFile, ofTempIdFile, ofTempIdFolder, ofTempIdFolder, ofTempRepositoryFile, ofTempRepositoryFile, ofTempRepositoryFolder, ofTempRepositoryFolder, ofUserDirectory, ofUserHome, ofUserStore, owner, readBytes, removePermissions, resolve, resolve, resolveChild, resolveChild, resolveSibling, resolveSibling, setPermissions, startsWith, startsWith, stream, subpath, toAbsolute, toAbsolute, toAbsolute, toCompressedForm, toFile, toPath, toRelative, toString, toURL, type, walk, walkDfs, walkDfs, walkGlob, writeBytes, writeMsg, writeObject, writeTextgetBufferedReader, getBufferedReader, getDigest, getDigestString, getDigestString, getReader, getReader, head, head, lines, lines, of, of, of, of, of, of, of, of, of, of, ofEmpty, ofMultiRead, readBytes, readString, readString, reversedLines, reversedLines, tail, tailpublic static final int BUFFER_SIZE
public InputStream getInputStream()
getInputStream in interface net.thevpc.nuts.io.NInputStreamProviderpublic OutputStream getOutputStream()
getOutputStream in interface net.thevpc.nuts.io.NOutputTargetprotected net.thevpc.nuts.io.NPath copyExtraFrom(net.thevpc.nuts.io.NPath other)
public boolean isKnownContentLength()
isKnownContentLength in interface net.thevpc.nuts.io.NInputSourcepublic PrintStream getPrintStream(Charset cs, net.thevpc.nuts.io.NPathOption... options)
getPrintStream in interface net.thevpc.nuts.io.NPathpublic PrintStream getPrintStream(net.thevpc.nuts.io.NPathOption... options)
getPrintStream in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPrintStream getNPrintStream(net.thevpc.nuts.io.NPathOption... options)
getNPrintStream in interface net.thevpc.nuts.io.NPathpublic PrintStream getPrintStream()
getPrintStream in interface net.thevpc.nuts.io.NPathpublic BufferedReader getBufferedReader(net.thevpc.nuts.io.NPathOption... options)
getBufferedReader in interface net.thevpc.nuts.io.NPathpublic BufferedReader getBufferedReader(Charset cs, net.thevpc.nuts.io.NPathOption... options)
getBufferedReader in interface net.thevpc.nuts.io.NPathpublic void copyToPrintStream(PrintStream other, net.thevpc.nuts.io.NPathOption... options)
copyToPrintStream in interface net.thevpc.nuts.io.NPathpublic void copyToPrintStream(PrintStream other, Charset cs, net.thevpc.nuts.io.NPathOption... options)
copyToPrintStream in interface net.thevpc.nuts.io.NPathpublic void copyToOutputStream(OutputStream other, net.thevpc.nuts.io.NPathOption... options)
copyToOutputStream in interface net.thevpc.nuts.io.NPathpublic void copyFromInputStream(InputStream other, net.thevpc.nuts.io.NPathOption... options)
copyFromInputStream in interface net.thevpc.nuts.io.NPathpublic void copyFromInputStreamProvider(net.thevpc.nuts.io.NInputStreamProvider other,
net.thevpc.nuts.io.NPathOption... options)
copyFromInputStreamProvider in interface net.thevpc.nuts.io.NPathpublic void copyFromReader(Reader other, net.thevpc.nuts.io.NPathOption... options)
copyFromReader in interface net.thevpc.nuts.io.NPathpublic void copyFromReader(Reader other, Charset charset, net.thevpc.nuts.io.NPathOption... options)
copyFromReader in interface net.thevpc.nuts.io.NPathpublic void copyFrom(net.thevpc.nuts.io.NPath other,
net.thevpc.nuts.io.NPathOption... options)
copyFrom in interface net.thevpc.nuts.io.NPathpublic void copyToWriter(Writer other, net.thevpc.nuts.io.NPathOption... options)
copyToWriter in interface net.thevpc.nuts.io.NPathpublic void copyToWriter(Writer other, Charset cs, net.thevpc.nuts.io.NPathOption... options)
copyToWriter in interface net.thevpc.nuts.io.NPathpublic boolean isUserCache()
isUserCache in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPath setUserCache(boolean userCache)
setUserCache in interface net.thevpc.nuts.io.NPathpublic boolean isUserTemporary()
isUserTemporary in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPath setUserTemporary(boolean temporary)
setUserTemporary in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPathNameParts getNameParts()
getNameParts in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPathNameParts getNameParts(net.thevpc.nuts.io.NPathExtensionType type)
getNameParts in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPathNameParts getSmartFileNameParts()
getSmartFileNameParts in interface net.thevpc.nuts.io.NPathpublic boolean isURL()
isURL in interface net.thevpc.nuts.io.NPathpublic boolean isFile()
isFile in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPath delete()
delete in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.text.NText toNutsString()
public net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> walk()
walk in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> walk(net.thevpc.nuts.io.NPathOption... options)
walk in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.util.NStream<net.thevpc.nuts.io.NPath> walk(int maxDepth)
walk in interface net.thevpc.nuts.io.NPathpublic Writer getWriter()
getWriter in interface net.thevpc.nuts.io.NPathpublic BufferedWriter getBufferedWriter()
getBufferedWriter in interface net.thevpc.nuts.io.NPathpublic Writer getWriter(net.thevpc.nuts.io.NPathOption... options)
getWriter in interface net.thevpc.nuts.io.NPathpublic Writer getWriter(Charset charset, net.thevpc.nuts.io.NPathOption... options)
getWriter in interface net.thevpc.nuts.io.NPathpublic BufferedWriter getBufferedWriter(net.thevpc.nuts.io.NPathOption... options)
getBufferedWriter in interface net.thevpc.nuts.io.NPathpublic BufferedWriter getBufferedWriter(Charset charset, net.thevpc.nuts.io.NPathOption... options)
getBufferedWriter in interface net.thevpc.nuts.io.NPathpublic Reader getReader(net.thevpc.nuts.io.NPathOption... options)
getReader in interface net.thevpc.nuts.io.NPathpublic Reader getReader(Charset cs, net.thevpc.nuts.io.NPathOption... options)
getReader in interface net.thevpc.nuts.io.NPathpublic boolean isHttp()
isHttp in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NContentMetadata getMetaData()
getMetaData in interface net.thevpc.nuts.io.NContentMetadataProviderpublic boolean isMultiRead()
isMultiRead in interface net.thevpc.nuts.io.NInputSourceisMultiRead in class AbstractMultiReadNInputSourcepublic void dispose()
dispose in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.io.NPath writeString(String string, Charset cs, net.thevpc.nuts.io.NPathOption... options)
writeString in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPath writeString(String string, net.thevpc.nuts.io.NPathOption... options)
writeString in interface net.thevpc.nuts.io.NPathpublic String readString(net.thevpc.nuts.io.NPathOption... options)
readString in interface net.thevpc.nuts.io.NPathpublic String readString(Charset cs, net.thevpc.nuts.io.NPathOption... options)
readString in interface net.thevpc.nuts.io.NPathpublic List<net.thevpc.nuts.io.NPath> list()
list in interface net.thevpc.nuts.io.NPathpublic void setDeleteOnDispose(boolean deleteOnDispose)
setDeleteOnDispose in interface net.thevpc.nuts.io.NPathpublic boolean isDeleteOnDispose()
isDeleteOnDispose in interface net.thevpc.nuts.io.NPathprotected static net.thevpc.nuts.io.NPath unwrapPath(net.thevpc.nuts.io.NPath other)
public byte[] getDigest(String algo)
getDigest in interface net.thevpc.nuts.io.NInputSourcegetDigest in class AbstractNInputSourcepublic net.thevpc.nuts.io.NPath resolveSiblingWithExtension(String extension)
resolveSiblingWithExtension in interface net.thevpc.nuts.io.NPathpublic net.thevpc.nuts.io.NPath resolveSiblingWithExtension(String extension, net.thevpc.nuts.io.NPathExtensionType type)
resolveSiblingWithExtension in interface net.thevpc.nuts.io.NPathCopyright © 2025 vpc open source initiative. All rights reserved.