Commit 5af6741f authored by Manuel Gunkel's avatar Manuel Gunkel
Browse files

close xml FileOutputStreams after writing

parent 9918a7b1
......@@ -8,7 +8,7 @@
<version>5.0</version> <relativePath /> </parent> -->
<description>Collection of tools for automated (feedback) microscopy data acquisition and analysis</description>
......@@ -103,12 +103,14 @@ public class PipelineXMLWriter {
DOMSource source = new DOMSource(_document);
StreamResult result = new StreamResult(new FileOutputStream(targetFile));
FileOutputStream fos = new FileOutputStream(targetFile);
StreamResult result = new StreamResult(fos);
transformer.transform(source, result);
// Output to console for testing
StreamResult consoleResult = new StreamResult(System.out);
transformer.transform(source, consoleResult);
public void writePipelineToFile(PipelineInterface _pipeline, File _file)throws Exception{
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment