Kactoos

kactoos-jvm / nnl.rocks.kactoos.io / HeadInput

HeadInput

class HeadInput : Input

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

Parameters

origin - The original input.

length - Limit of bytes that can be read from the beginning.

Since 0.4

Constructors

Name Summary
<init> HeadInput(origin: Input, length: Long)
Input that only shows the first N bytes of the original input.

Functions

Name Summary
stream fun stream(): InputStream
Get read access to it.