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 Object
implements ByteUtils.ByteConsumer
ByteUtils.ByteConsumer
based on OutputStream
.- Since:
- 1.14
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(int b) The contract is similar toOutputStream.write(int)
, consume the lower eight bytes of the int as a byte.
-
Constructor Details
-
OutputStreamByteConsumer
-
-
Method Details
-
accept
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:
IOException
- if consuming fails
-