@Beta @DoNotMock("Implement it normally") @GwtIncompatible public interface ByteProcessor<T extends @Nullable java.lang.Object>A callback interface to process bytes from a stream.
processBytes(byte, int, int)will be called for each chunk of data that is read, and should return
falsewhen you want to stop processing.
- Chris Nokleberg
@CanIgnoreReturnValue boolean processBytes(byte buf, int off, int len) throws java.io.IOExceptionThis method will be called for each chunk of bytes in an input stream. The implementation should process the bytes from
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
- true to continue processing, false to stop