Skip to content

Commit

Permalink
moved flush from writePerson to endPlans
Browse files Browse the repository at this point in the history
  • Loading branch information
neuma committed Sep 14, 2023
1 parent bf455e5 commit 7ed4e31
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ else if (pe instanceof Leg) {
}
this.endPerson(writer);
this.writeSeparator(writer);
writer.flush();
}

public abstract void startPerson(final Person person, final BufferedWriter out) throws IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public void startPlans(final Population plans, final BufferedWriter out) throws
@Override
public void endPlans(final BufferedWriter out) throws IOException {
out.write("</plans>\n");
out.flush();
}

//////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public void startPlans(final Population plans, final BufferedWriter out) throws
@Override
public void endPlans(final BufferedWriter out) throws IOException {
out.write("</plans>\n");
out.flush();
}

//////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ else if (pe instanceof Leg) {
}
PopulationWriterHandlerImplV5.endPerson(out);
this.writeSeparator(out);
out.flush();
}

@Override
public void endPlans(final BufferedWriter out) throws IOException {
out.write("</population>\n");
out.flush();
}

private static void startPerson(final Person person, final BufferedWriter out) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ else if (pe instanceof Leg) {
}
PopulationWriterHandlerImplV6.endPerson(out);
this.writeSeparator(out);
out.flush();
}

@Override
public void endPlans(final BufferedWriter out) throws IOException {
out.write("</population>\n");
out.flush();
}

private void startPerson(final Person person, final BufferedWriter out) throws IOException {
Expand Down

0 comments on commit 7ed4e31

Please sign in to comment.