public abstract class AbstractNInputSource extends Object implements net.thevpc.nuts.io.NInputSource
| Constructor and Description |
|---|
AbstractNInputSource() |
| Modifier and Type | Method and Description |
|---|---|
BufferedReader |
asBufferedReader() |
BufferedReader |
asBufferedReader(Charset cs) |
Reader |
asReader() |
Reader |
asReader(Charset cs) |
String |
charset() |
String |
contentType() |
byte[] |
digest() |
String |
digestString() |
byte[] |
getDigest(String algo) |
String |
getDigestString(String algo) |
net.thevpc.nuts.util.NStream<String> |
head(long count) |
net.thevpc.nuts.util.NStream<String> |
head(long count,
Charset cs) |
net.thevpc.nuts.util.NStream<String> |
lines() |
net.thevpc.nuts.util.NStream<String> |
lines(Charset cs) |
net.thevpc.nuts.util.NStream<String> |
lines(Long from,
Long to) |
net.thevpc.nuts.util.NStream<String> |
lines(Long from,
Long to,
Charset cs)
this is teh default implementation of lines part of any input stream
|
String |
name() |
protected Charset |
nonNullCharset(Charset c) |
byte[] |
readBytes() |
String |
readString() |
net.thevpc.nuts.util.NStream<String> |
reversedLines() |
net.thevpc.nuts.util.NStream<String> |
reversedLines(Charset cs) |
net.thevpc.nuts.util.NStream<String> |
tail(long count) |
net.thevpc.nuts.util.NStream<String> |
tail(long count,
Charset cs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic String name()
name in interface net.thevpc.nuts.io.NInputContentProviderpublic String contentType()
contentType in interface net.thevpc.nuts.io.NInputContentProviderpublic String charset()
charset in interface net.thevpc.nuts.io.NInputContentProviderpublic net.thevpc.nuts.util.NStream<String> lines()
lines in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> lines(Long from, Long to)
lines in interface net.thevpc.nuts.io.NInputSourcepublic String readString()
readString in interface net.thevpc.nuts.io.NInputSourcepublic byte[] readBytes()
readBytes in interface net.thevpc.nuts.io.NInputSourcepublic BufferedReader asBufferedReader()
asBufferedReader in interface net.thevpc.nuts.io.NInputSourcepublic BufferedReader asBufferedReader(Charset cs)
asBufferedReader in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> tail(long count, Charset cs)
tail in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> head(long count)
head in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> head(long count, Charset cs)
head in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> tail(long count)
tail in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> reversedLines()
reversedLines in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> reversedLines(Charset cs)
reversedLines in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> lines(Charset cs)
lines in interface net.thevpc.nuts.io.NInputSourcepublic net.thevpc.nuts.util.NStream<String> lines(Long from, Long to, Charset cs)
lines in interface net.thevpc.nuts.io.NInputSourcefrom - 0-based inclusive index of the first line to return or null. when negative, should consider tail (-from)to - 0-based exclusive index of the last line to return or null. when negative, should consider tail (-to where -1 relates to the end of the stream)cs - charset if provided , if ot use defaultpublic Reader asReader()
asReader in interface net.thevpc.nuts.io.NInputSourcepublic Reader asReader(Charset cs)
asReader in interface net.thevpc.nuts.io.NInputSourcepublic String digestString()
digestString in interface net.thevpc.nuts.io.NInputSourcepublic String getDigestString(String algo)
getDigestString in interface net.thevpc.nuts.io.NInputSourcepublic byte[] digest()
digest in interface net.thevpc.nuts.io.NInputSourcepublic byte[] getDigest(String algo)
getDigest in interface net.thevpc.nuts.io.NInputSourceCopyright © 2026 vpc open source initiative. All rights reserved.