InputStreamReader reader = new InputStreamReader(in);
fileContents = IOUtils.toString(reader);
}
catch (Exception e)
{
throw new FileFormatException("Le chargement du fichier a échoué.",
e);
}
fileContents = replace(fileContents, "\r\n", "\n");
String[] lines = split(fileContents, "\n");