Kactoos

kactoos-jvm / nnl.rocks.kactoos.io / HeadInputStream / <init>

<init>

HeadInputStream(origin: InputStream, length: Long)

Input stream that only shows the first N bytes of the original stream.

There is no thread-safety guarantee.

Parameters

origin - The original input stream.

len - A number of bytes that can be read from the beginning.

Since 0.4