public interface DataProducer
A producer which offers processed data.
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the producer in the exception (if one is thrown).
|
int |
produce(byte[] buffer)
Produces the data.
|
String getName()
Returns the name of the producer in the exception (if one is thrown).
int produce(byte[] buffer)
throws IOException
Produces the data.
buffer - The buffer which is filled with the data.-1, if the end of the produced data is reached.IllegalArgumentException - If the buffer is null.IOException - If an I/O error occurs.Copyright © 2015–2019. All rights reserved.