Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aliaksandr Halavatyi
AutoMicTools
Commits
5af6741f
Commit
5af6741f
authored
Jul 22, 2021
by
Manuel Gunkel
Browse files
close xml FileOutputStreams after writing
parent
9918a7b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
5af6741f
...
...
@@ -8,7 +8,7 @@
<version>5.0</version> <relativePath /> </parent> -->
<groupId>
embl.almf
</groupId>
<artifactId>
AutoMicTools_
</artifactId>
<version>
1.1.2
8
-SNAPSHOT
</version>
<version>
1.1.2
9
-SNAPSHOT
</version>
<name>
plugins/AutoMicTools_.jar
</name>
<description>
Collection of tools for automated (feedback) microscopy data acquisition and analysis
</description>
...
...
src/main/java/automic/postaq/pipeline/xml/PipelineXMLWriter.java
View file @
5af6741f
...
...
@@ -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
);
fos
.
close
();
}
public
void
writePipelineToFile
(
PipelineInterface
_pipeline
,
File
_file
)
throws
Exception
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment