import java.io.File;
import java.io.IOException;
+import java.io.OutputStreamWriter;
import java.io.PrintWriter;
+import java.nio.charset.Charset;
import java.sql.Connection;
import java.sql.SQLException;
import java.text.MessageFormat;
Delta delta = new Delta(prior, analysis);
HtmlReport report = new HtmlReport(m_bundle, messageMap.getColl(), delta);
- report.write(m_output);
+ if (null != m_output) {
+ report.write(m_output);
+ }
Notifier notifier = new Notifier(m_bundle, m_config);
notifier.sendEmailIfNeeded(pw, report);
public static void main(String[] args) {
CFB cfb = new CFB(Locale.getDefault());
- try (PrintWriter pw = new PrintWriter(System.out)){
+ try (PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out, Charset.defaultCharset()))) {
cfb.doMain(pw, args);
pw.flush();
} catch (SQLException | IOException | XmlParseException | SAXException | TypeMismatchException exc) {