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

Method readSources

code/src/java/pcgen/io/PCGIOHandler.java:536–547  ·  view source on GitHub ↗

Read in the list of sources required for the character. @param pcgFile The character file @return The list of sources

(File pcgFile)

Source from the content-addressed store, hash-verified

534 * @return The list of sources
535 */
536 public SourceSelectionFacade readSources(File pcgFile)
537 {
538
539 try (InputStream in = new FileInputStream(pcgFile))
540 {
541 return internalReadSources(in);
542 } catch (IOException ex)
543 {
544 Logging.errorPrint("Exception in IOHandler::read when reading", ex);
545 }
546 return null;
547 }
548
549 @Nullable
550 private SourceSelectionFacade internalReadSources(InputStream in)

Callers 1

Calls 2

internalReadSourcesMethod · 0.95
errorPrintMethod · 0.95

Tested by

no test coverage detected