org.apache.commons.compress.utils

## Interface ByteUtils.ByteSupplier

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

      public static interface ByteUtils.ByteSupplier

  Used to supply bytes.
  Since:
    1.14

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getAsByte()` The contract is similar to `InputStream.read()`, return the byte as an unsigned int, -1 if there are no more bytes.

- - ### Method Detail

    - #### getAsByte

          int getAsByte()
                 throws IOException

      The contract is similar to `InputStream.read()`, return the byte as an unsigned int, -1 if there are no more bytes.
      Returns:
        the supplied byte or -1 if there are no more bytes
      Throws:
        `IOException` - if supplying fails

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