Class ByteUtils.InputStreamByteSupplier

    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputStreamByteSupplier

        public InputStreamByteSupplier​(java.io.InputStream is)
    • Method Detail

      • getAsByte

        public int getAsByte()
                      throws java.io.IOException
        Description copied from interface: ByteUtils.ByteSupplier
        The contract is similar to InputStream.read(), return the byte as an unsigned int, -1 if there are no more bytes.
        Specified by:
        getAsByte in interface ByteUtils.ByteSupplier
        Returns:
        the supplied byte or -1 if there are no more bytes
        Throws:
        java.io.IOException - if supplying fails