Package org.cryptacular.io
Interface ChunkHandler
public interface ChunkHandler
Callback interface that supports arbitrary processing of data chunks read from an input stream.
- Author:
- Middleware Services
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(byte[] input, int offset, int count, OutputStream output) Processes the given chunk of data and writes it to the output stream.
-
Method Details
-
handle
Processes the given chunk of data and writes it to the output stream.- Parameters:
input- Chunk of input data to process.offset- Offset into input array where data to process starts.count- Number of bytes of input data to process.output- Output stream where processed data is written.- Throws:
IOException- On IO errors.
-