Package org.cactoos.bytes
Class IoCheckedBytes
- java.lang.Object
-
- org.cactoos.bytes.IoCheckedBytes
-
- All Implemented Interfaces:
Bytes
public final class IoCheckedBytes extends Object implements Bytes
Bytes that doesn't throw checkedException
, but only throwsIOException
.There is no thread-safety guarantee.
- Since:
- 0.52
-
-
Constructor Summary
Constructors Constructor Description IoCheckedBytes(Bytes bts)
Ctor.IoCheckedBytes(Bytes bts, Fallback<byte[]> fbk)
Ctor.
-
-
-
Method Detail
-
asBytes
public byte[] asBytes() throws IOException
Description copied from interface:Bytes
Convert it to the byte array.- Specified by:
asBytes
in interfaceBytes
- Returns:
- The byte array
- Throws:
IOException
-
-