(final String filename, final Iterator<? extends PObject> it)
| 523 | } |
| 524 | |
| 525 | private static void writeCustomPObjects(final String filename, final Iterator<? extends PObject> it) |
| 526 | { |
| 527 | |
| 528 | try (BufferedWriter bw = getWriter(filename)) |
| 529 | { |
| 530 | |
| 531 | if (bw == null) |
| 532 | { |
| 533 | return; |
| 534 | } |
| 535 | |
| 536 | writeCustomHeader(bw); |
| 537 | |
| 538 | while (it.hasNext()) |
| 539 | { |
| 540 | final PObject pobj = it.next(); |
| 541 | |
| 542 | if (pobj.isType(Constants.TYPE_CUSTOM)) |
| 543 | { |
| 544 | bw.write(pobj.getPCCText()); |
| 545 | bw.newLine(); |
| 546 | } |
| 547 | } |
| 548 | } catch (IOException e) |
| 549 | { |
| 550 | Logging.errorPrint("Error in writeCustomPObjects", e); |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | private static void writeCustomRaces() |
| 555 | { |
no test coverage detected