Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 895de471 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- Changed flush/close so that this really works once embedded

parent 9a027c5f
No related branches found
No related tags found
No related merge requests found
......@@ -74,14 +74,14 @@ public class MyAlign {
A2.align((Alignment)null,p); A3.align(A2,p);
Evaluator E = new PRecEvaluator(A1, A3);
E.eval(p);
AlignmentVisitor V = new SWRLRendererVisitor(
new PrintWriter (
new BufferedWriter(
new OutputStreamWriter( System.out,
"UTF-8" )),
true));
PrintWriter pw = new PrintWriter (
new BufferedWriter(
new OutputStreamWriter( System.out, "UTF-8" )),
true);
AlignmentVisitor V = new SWRLRendererVisitor( pw );
if ( ((PRecEvaluator)E).getPrecision() > .6 ) A3.render(V);
System.out.flush(); // necessary when the program is really embedded
pw.flush();
pw.close(); // necessary when the program is really embedded
} catch (Exception e) { e.printStackTrace(); };
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment