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

Method getWriter

code/src/java/pcgen/core/CustomData.java:414–425  ·  view source on GitHub ↗
(final String path)

Source from the content-addressed store, hash-verified

412 }
413
414 private static BufferedWriter getWriter(final String path)
415 {
416 try
417 {
418 return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), "UTF-8"));
419 } catch (IOException e)
420 {
421 Logging.errorPrint("Could not get a writer to write to " + path
422 + " \nThis means that your custom files won't be written. Please check the path.", e);
423 return null;
424 }
425 }
426
427 private static String customEquipmentFilePath()
428 {

Callers 5

getPurchaseModeWriterMethod · 0.95
writeCustomBioSetMethod · 0.95
writeCustomPObjectsMethod · 0.95
writeCustomSpellsMethod · 0.95

Calls 1

errorPrintMethod · 0.95

Tested by

no test coverage detected