public interface DataConsumer
A consumer which accepts data for further processing.
| Modifier and Type | Method and Description |
|---|---|
void |
consume(byte[] buffer,
int length)
Consume the data.
|
String |
getName()
Returns the name of the consumer in the exception (if one is thrown).
|
String getName()
Returns the name of the consumer in the exception (if one is thrown).
void consume(byte[] buffer,
int length)
throws IOException
Consume the data.
buffer - The buffer containing the data.length - The length which defines how much of the buffer is filled with
data.IOException - If an I/O error occurs.Copyright © 2015–2019. All rights reserved.