Class ByteUtils.OutputStreamByteConsumer
- java.lang.Object
-
- org.apache.commons.compress.utils.ByteUtils.OutputStreamByteConsumer
-
- All Implemented Interfaces:
ByteUtils.ByteConsumer
- Enclosing class:
- ByteUtils
public static class ByteUtils.OutputStreamByteConsumer extends java.lang.Object implements ByteUtils.ByteConsumer
ByteUtils.ByteConsumer
based onOutputStream
.- Since:
- 1.14
-
-
Constructor Summary
Constructors Constructor Description OutputStreamByteConsumer(java.io.OutputStream os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(int b)
The contract is similar toOutputStream.write(int)
, consume the lower eight bytes of the int as a byte.
-
-
-
Method Detail
-
accept
public void accept(int b) throws java.io.IOException
Description copied from interface:ByteUtils.ByteConsumer
The contract is similar toOutputStream.write(int)
, consume the lower eight bytes of the int as a byte.- Specified by:
accept
in interfaceByteUtils.ByteConsumer
- Parameters:
b
- the byte to consume- Throws:
java.io.IOException
- if consuming fails
-
-