Package org.cactoos.proc
Class IoCheckedProc<X>
- java.lang.Object
-
- org.cactoos.proc.IoCheckedProc<X>
-
- Type Parameters:
X
- Type of input
- All Implemented Interfaces:
Proc<X>
public final class IoCheckedProc<X> extends Object implements Proc<X>
Proc that doesn't throw checkedException
, but throwsIOException
instead.There is no thread-safety guarantee.
- Since:
- 0.4
-
-
Constructor Summary
Constructors Constructor Description IoCheckedProc(Proc<X> prc)
Ctor.
-
-
-
Method Detail
-
exec
public void exec(X input) throws IOException
Description copied from interface:Proc
Execute it.- Specified by:
exec
in interfaceProc<X>
- Parameters:
input
- The argument- Throws:
IOException
-
-