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

Method getReader

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

Source from the content-addressed store, hash-verified

399 }
400
401 private static BufferedReader getReader(final String path)
402 {
403 try
404 {
405 //return new BufferedReader(new FileReader(path));
406 return new BufferedReader(new InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8));
407 } catch (IOException e)
408 {
409 Logging.debugPrint("Could not get a reader to read from " + path, e);
410 return null;
411 }
412 }
413
414 private static BufferedWriter getWriter(final String path)
415 {

Callers 1

Calls 1

debugPrintMethod · 0.95

Tested by

no test coverage detected