@Beta @DoNotMock(value="Implement it normally") @GwtIncompatible public interface ByteProcessor<T>
processBytes(byte, int, int) will be called for each chunk of data that is read, and should return
false when you want to stop processing.
|Modifier and Type||Method and Description|
Return the result of processing all the bytes.
This method will be called for each chunk of bytes in an input stream.
@CanIgnoreReturnValue boolean processBytes(byte buf, int off, int len) throws IOException
buf[off + len - 1](inclusive).
buf- the byte array containing the data to process
off- the initial offset into the array
len- the length of data to be processed
Copyright © 2010–2020. All rights reserved.