MCPcopy Create free account
hub / github.com/PCGen/pcgen / writeCustomPObjects

Method writeCustomPObjects

code/src/java/pcgen/core/CustomData.java:525–552  ·  view source on GitHub ↗
(final String filename, final Iterator<? extends PObject> it)

Source from the content-addressed store, hash-verified

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 {

Callers 8

writeCustomClassesMethod · 0.95
writeCustomDeitiesMethod · 0.95
writeCustomDomainsMethod · 0.95
writeCustomAbilitiesMethod · 0.95
writeCustomLanguagesMethod · 0.95
writeCustomRacesMethod · 0.95
writeCustomSkillsMethod · 0.95
writeCustomTemplatesMethod · 0.95

Calls 9

getWriterMethod · 0.95
writeCustomHeaderMethod · 0.95
isTypeMethod · 0.95
getPCCTextMethod · 0.95
errorPrintMethod · 0.95
newLineMethod · 0.80
writeMethod · 0.65
hasNextMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected