Kactoos

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

<init>

InputWithFallback(input: Input, alt: Input) InputWithFallback(input: Input, alt: Func<IOException, Input>)

Parameters

input - Main input

alt - AlternativeInputWithFallback(input: Input)InputWithFallback(main: Input, alternative: IoCheckedFunc<IOException, Input>)

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

There is no thread-safety guarantee.

Since 0.9