package net.jaekl.cfb.analyze;
import java.io.File;
-import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import net.jaekl.cfb.CfbBundle;
import net.jaekl.cfb.store.Location;
+import net.jaekl.cfb.util.Command;
import net.jaekl.cfb.xml.BugInstance;
import net.jaekl.cfb.xml.messages.BugPattern;
import net.jaekl.cfb.xml.messages.MessageCollection;
public void write(File output) throws IOException
{
- try ( FileOutputStream fos = new FileOutputStream(output);
- PrintWriter pw = new PrintWriter(fos); )
+ try ( PrintWriter pw = new PrintWriter(output, Command.UTF_8) )
{
write(pw);
+ pw.flush();
}
}