Class ByteUtils.OutputStreamByteConsumer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(int b)
      The contract is similar to OutputStream.write(int), consume the lower eight bytes of the int as a byte.
      • Methods inherited from class java.lang.Object

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

      • OutputStreamByteConsumer

        public OutputStreamByteConsumer​(java.io.OutputStream os)
    • Method Detail

      • accept

        public void accept​(int b)
                    throws java.io.IOException
        Description copied from interface: ByteUtils.ByteConsumer
        The contract is similar to OutputStream.write(int), consume the lower eight bytes of the int as a byte.
        Specified by:
        accept in interface ByteUtils.ByteConsumer
        Parameters:
        b - the byte to consume
        Throws:
        java.io.IOException - if consuming fails