Class SeekableReadableChannels
java.lang.Object
org.aksw.commons.io.input.SeekableReadableChannels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SeekableByteChanneladapt(SeekableReadableChannel<byte[]> channel) static CharSequenceasCharSequence(SeekableReadableChannel<byte[]> channel) Returns a char sequence over the given channel where the current position in the channel corresponds to byte 0static CharSequenceasCharSequence(SeekableReadableChannel<byte[]> channel, int length) Ensure that the length is NOT greater than the amount of available data!static <T> SeekableReadableChannel<T> static <A> SeekableReadableChannelOverBuffer<A> static <A> SeekableReadableChannelOverBuffer<A> newChannel(ArrayReadable<A> arrayReadable) static <A> SeekableReadableChannelOverBuffer<A> newChannel(ArrayReadable<A> arrayReadable, long pos) static <A> SeekableReadableChannelOverBuffer<A> static <A> SeekableReadableChannelOverBuffer<A> static <A, X extends SeekableReadableChannel<A>>
SeekableReadableChannel<A> omitBlockMarker(X delegate) static longposition(SeekableReadableChannel<?> channel) Non-throwing version ofHasPosition.position()static <A> SeekableReadableChannel<A> shiftOffset(SeekableReadableChannel<A> dataStream, long offset) static SeekableReadableChannel<byte[]> wrap(SeekableByteChannel nioChannel) static <A> SeekableReadableChannel<A> wrapForwardSeekable(ReadableChannel<A> channel, long basePos) Wrap a readable channel such the positioning via skipping becomes possible
-
Constructor Details
-
SeekableReadableChannels
public SeekableReadableChannels()
-
-
Method Details
-
omitBlockMarker
public static <A, X extends SeekableReadableChannel<A>> SeekableReadableChannel<A> omitBlockMarker(X delegate) -
shiftOffset
public static <A> SeekableReadableChannel<A> shiftOffset(SeekableReadableChannel<A> dataStream, long offset) -
wrap
-
adapt
-
newChannel
-
newChannel
public static <A> SeekableReadableChannelOverBuffer<A> newChannel(ArrayReadable<A> arrayReadable, long pos) -
empty
-
of
-
of
-
wrapForwardSeekable
public static <A> SeekableReadableChannel<A> wrapForwardSeekable(ReadableChannel<A> channel, long basePos) Wrap a readable channel such the positioning via skipping becomes possible -
closeShield
-
asCharSequence
Returns a char sequence over the given channel where the current position in the channel corresponds to byte 0 -
asCharSequence
Ensure that the length is NOT greater than the amount of available data! -
position
Non-throwing version ofHasPosition.position()
-