|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Beta public interface ByteProcessor<T>
A callback interface to process bytes from a stream.
processBytes(byte[], int, int) will be called for each line that is read, and
should return false when you want to stop processing.
| Method Summary | |
|---|---|
T |
getResult()
Return the result of processing all the bytes. |
boolean |
processBytes(byte[] buf,
int off,
int len)
This method will be called for each chunk of bytes in an input stream. |
| Method Detail |
|---|
boolean processBytes(byte[] buf,
int off,
int len)
throws IOException
buf[off] through buf[off + len - 1]
(inclusive).
buf - the byte array containing the data to processoff - the initial offset into the arraylen - the length of data to be processed
IOExceptionT getResult()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||