All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.skjolber.unzip.FileEntryChunkStreamHandler Maven / Gradle / Ivy

package com.github.skjolber.unzip;

import java.io.InputStream;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * Chunk splitter - determines chunk boundary
 * 
 */

public interface FileEntryChunkStreamHandler {

	FileChunkSplitter getFileChunkSplitter();

	void initialize(InputStream in, ThreadPoolExecutor executor) throws Exception;

	/**
	 * Handle a file entry chunk
	 * 
	 * @param in file binary stream
	 * @param executor work delegation executor
	 * @param chunkNumber chunk number (0 ... n) 
	 * @throws Exception if a problem occurs
	 */

	void handleChunk(InputStream in, ThreadPoolExecutor executor, int chunkNumber) throws Exception;
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy