Kactoos

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

InputWithFallback

class InputWithFallback : Input

Input that returns an alternative input if the main one throws IOException.

There is no thread-safety guarantee.

Since 0.9

Constructors

Name Summary
<init> InputWithFallback(input: Input, alt: Input)
InputWithFallback(input: Input)
InputWithFallback(input: Input, alt: Func<IOException, Input>)InputWithFallback(main: Input, alternative: IoCheckedFunc<IOException, Input>)
Input that returns an alternative input if the main one throws IOException.

Functions

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