Package com.google.common.io
Interface ByteProcessor<T>
-
@Beta @Deprecated(since="2022-12-01") public interface ByteProcessor<T>
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023A callback interface to process bytes from a stream.processBytes(byte[], int, int)
will be called for each line that is read, and should returnfalse
when you want to stop processing.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description T
getResult()
Deprecated.Return the result of processing all the bytes.boolean
processBytes(byte[] buf, int off, int len)
Deprecated.This method will be called for each chunk of bytes in an input stream.
-
-
-
Method Detail
-
processBytes
boolean processBytes(byte[] buf, int off, int len) throws java.io.IOException
Deprecated.This method will be called for each chunk of bytes in an input stream. The implementation should process the bytes frombuf[off]
throughbuf[off + len - 1]
(inclusive).- Parameters:
buf
- the byte array containing the data to processoff
- the initial offset into the arraylen
- the length of data to be processed- Returns:
- true to continue processing, false to stop
- Throws:
java.io.IOException
-
getResult
T getResult()
Deprecated.Return the result of processing all the bytes.
-
-