public abstract class AbstractNInputSource extends Object implements 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) |
NStream<String> |
head(long count) |
NStream<String> |
head(long count,
Charset cs) |
NStream<String> |
lines() |
NStream<String> |
lines(Charset cs) |
NStream<String> |
lines(Long from,
Long to) |
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() |
NStream<String> |
reversedLines() |
NStream<String> |
reversedLines(Charset cs) |
NStream<String> |
tail(long count) |
NStream<String> |
tail(long count,
Charset cs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontentLength, dispose, isKnownContentLength, isMultiRead, of, of, of, of, of, of, of, of, of, of, of, of, of, ofEmpty, ofMultiRead, readStringmetaDatainputStreampublic String name()
name in interface NInputContentProviderpublic String contentType()
contentType in interface NInputContentProviderpublic String charset()
charset in interface NInputContentProviderpublic NStream<String> lines()
lines in interface NInputSourcepublic NStream<String> lines(Long from, Long to)
lines in interface NInputSourcepublic String readString()
readString in interface NInputSourcepublic byte[] readBytes()
readBytes in interface NInputSourcepublic BufferedReader asBufferedReader()
asBufferedReader in interface NInputSourcepublic BufferedReader asBufferedReader(Charset cs)
asBufferedReader in interface NInputSourcepublic NStream<String> tail(long count, Charset cs)
tail in interface NInputSourcepublic NStream<String> head(long count)
head in interface NInputSourcepublic NStream<String> head(long count, Charset cs)
head in interface NInputSourcepublic NStream<String> tail(long count)
tail in interface NInputSourcepublic NStream<String> reversedLines()
reversedLines in interface NInputSourcepublic NStream<String> reversedLines(Charset cs)
reversedLines in interface NInputSourcepublic NStream<String> lines(Charset cs)
lines in interface NInputSourcepublic NStream<String> lines(Long from, Long to, Charset cs)
lines in interface 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 NInputSourcepublic Reader asReader(Charset cs)
asReader in interface NInputSourcepublic String digestString()
digestString in interface NInputSourcepublic String getDigestString(String algo)
getDigestString in interface NInputSourcepublic byte[] digest()
digest in interface NInputSourcepublic byte[] getDigest(String algo)
getDigest in interface NInputSourceCopyright © 2026 vpc open source initiative. All rights reserved.