Class ByteUtils.InputStreamByteSupplier

    • Constructor Summary

      Constructors 
      Constructor Description
      InputStreamByteSupplier​(java.io.InputStream is)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int getAsByte()
      Deprecated.
      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)
        Deprecated.
    • Method Detail

      • getAsByte

        public int getAsByte()
                      throws java.io.IOException
        Deprecated.
        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