fr.insee.eno.preprocessing.Preprocessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eno-core Show documentation
Show all versions of eno-core Show documentation
Eno is a tool that generates survey questionnaires starting from their formal description in DDI
package fr.insee.eno.preprocessing;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
/**
* Operates a set of transformation to prepare the generation.
*/
public interface Preprocessor {
/**
* This method handles the preprocessing of an input file. TODO Exception is
* also weak, change to a more robust Exception
*
* @param inputFile
* The file to preprocess
* @param parameters
* An optional parameters file
* @param survey
* An optional parameters file
* @return the preprocessed file
* @throws Exception
* when it goes wrong
*/
public ByteArrayOutputStream process(InputStream inputFile, byte[] parameters, String survey, String in2out) throws Exception;
public String toString();
}