- All Known Implementing Classes:
ByteUtils.OutputStreamByteConsumer
- Enclosing class:
ByteUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Used to consume bytes.
- Since:
- 1.14
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(int b) The contract is similar toOutputStream.write(int), consume the lower eight bytes of the int as a byte.
-
Method Details
-
accept
The contract is similar toOutputStream.write(int), consume the lower eight bytes of the int as a byte.- Parameters:
b- the byte to consume- Throws:
IOException- if consuming fails
-