com.github.skjolber.unzip.FileEntryStreamHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unzip-csv Show documentation
Show all versions of unzip-csv Show documentation
Project for unzipping CSV files
package com.github.skjolber.unzip;
import java.io.InputStream;
import java.util.concurrent.ThreadPoolExecutor;
public interface FileEntryStreamHandler {
/**
* Handle a file entry
*
* @param in file binary stream
* @param executor work delegation executor
* @param consume if true, the stream must be consumed in the current thread (not delegated to executor)
* @throws Exception if a problem occurs
*/
void handle(InputStream in, ThreadPoolExecutor executor, boolean consume) throws Exception;
}