Interface ByteUtils.ByteSupplier

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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 java.io.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:
        java.io.IOException - if supplying fails