Class IoChecked<T>

  • Type Parameters:
    T - Type of result
    All Implemented Interfaces:
    Scalar<T>

    public final class IoChecked<T>
    extends Object
    implements Scalar<T>
    Scalar that doesn't throw Exception, but throws IOException instead.

    There is no thread-safety guarantee.

    This class implements Scalar, which throws a checked IOException. This may not be convenient in many cases. To make it more convenient and get rid of the checked exception you can use the Unchecked decorator.

    Since:
    0.4
    • Constructor Detail

      • IoChecked

        public IoChecked​(Scalar<? extends T> scalar)
        Ctor.
        Parameters:
        scalar - Encapsulated scalar