org.apache.commons.compress.utils

## Interface ByteUtils.ByteConsumer

- All Known Implementing Classes:
    ByteUtils.OutputStreamByteConsumer
  Enclosing class:
    ByteUtils

      public static interface ByteUtils.ByteConsumer

  Used to consume bytes.
  Since:
    1.14

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(int b)` The contract is similar to `OutputStream.write(int)`, consume the lower eight bytes of the int as a byte.

- - ### Method Detail

    - #### accept

          void accept(int b)
               throws IOException

      The contract is similar to `OutputStream.write(int)`, consume the lower eight bytes of the int as a byte.
      Parameters:
        `b` - the byte to consume
      Throws:
        `IOException` - if consuming fails

Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.