org.cryptacular.io.ChunkHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cryptacular Show documentation
Show all versions of cryptacular Show documentation
The spectacular complement to the Bouncy Castle crypto API for Java.
/* See LICENSE for licensing and NOTICE for copyright. */
package org.cryptacular.io;
import java.io.IOException;
import java.io.OutputStream;
/**
* Callback interface that supports arbitrary processing of data chunks read from an input stream.
*
* @author Middleware Services
*/
public interface ChunkHandler
{
/**
* Processes the given chunk of data and writes it to the output stream.
*
* @param input Chunk of input data to process.
* @param offset Offset into input array where data to process starts.
* @param count Number of bytes of input data to process.
* @param output Output stream where processed data is written.
*
* @throws IOException On IO errors.
*/
void handle(byte[] input, int offset, int count, OutputStream output)
throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy