// auto-flush
this.importTimingOS.println("fichier XML;fichier decoupe;action;date debut;date fin");
} catch (final Exception ex) {
+ logger.error(ex, ex);
}
}
if (this.importTimingOS == null) {
return xs.getFileInfo();
}
- protected XmlSplitter splitFile(final File fHeader, final File fRef, final File fFooter, final File tmpDir, final File fToImport, final String fileEncoding) throws FileNotFoundException, UnsupportedEncodingException, SAXException,
- ParserConfigurationException {
+ protected XmlSplitter splitFile(final File fHeader, final File fRef, final File fFooter, final File tmpDir, final File fToImport, final String fileEncoding) throws FileNotFoundException, UnsupportedEncodingException, SAXException, ParserConfigurationException {
final FileOutputStream fisHeader = new FileOutputStream(fHeader);
final FileOutputStream fisRef = new FileOutputStream(fRef);
final FileOutputStream fisFooter = new FileOutputStream(fFooter);
try {
fisHeader.flush();
fisHeader.close();
- } catch (final Throwable t) {
+ } catch (final Exception ex) {
+ logger.error(ex, ex);
}
}
if (fisRef != null) {
try {
fisRef.flush();
fisRef.close();
- } catch (final Throwable t) {
+ } catch (final Exception ex) {
+ logger.error(ex, ex);
}
}
if (fisFooter != null) {
try {
fisFooter.flush();
fisFooter.close();
- } catch (final Throwable t) {
+ } catch (final Exception ex) {
+ logger.error(ex, ex);
}
}
}