T
- Type of resultpublic final class IoCheckedScalar<T> extends Object implements Scalar<T>
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 UncheckedScalar
decorator.
Constructor and Description |
---|
IoCheckedScalar(Scalar<T> scalar)
Ctor.
|
public T value() throws IOException
Scalar
value
in interface Scalar<T>
IOException
Copyright © 2017–2019 Cactoos. All rights reserved.