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 { ...@@ -74,14 +74,14 @@ public class MyAlign {
A2.align((Alignment)null,p); A3.align(A2,p); A2.align((Alignment)null,p); A3.align(A2,p);
Evaluator E = new PRecEvaluator(A1, A3); Evaluator E = new PRecEvaluator(A1, A3);
E.eval(p); E.eval(p);
AlignmentVisitor V = new SWRLRendererVisitor( PrintWriter pw = new PrintWriter (
new PrintWriter ( new BufferedWriter(
new BufferedWriter( new OutputStreamWriter( System.out, "UTF-8" )),
new OutputStreamWriter( System.out, true);
"UTF-8" )), AlignmentVisitor V = new SWRLRendererVisitor( pw );
true));
if ( ((PRecEvaluator)E).getPrecision() > .6 ) A3.render(V); 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(); }; } catch (Exception e) { e.printStackTrace(); };
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment