MCPcopy Create free account
hub / github.com/antlr/codebuff / loadAbsoluteTemplateFile

Method loadAbsoluteTemplateFile

output/java/1.4.14/STGroup.java:649–661  ·  view source on GitHub ↗

Load template file into this group using absolute fileName.

(String fileName)

Source from the content-addressed store, hash-verified

647 /** Load template file into this group using absolute {@code fileName}. */
648
649 public CompiledST loadAbsoluteTemplateFile(String fileName) {
650 ANTLRFileStream fs;
651 try {
652 fs = new ANTLRFileStream(fileName, encoding);
653 fs.name = fileName;
654 }
655 catch (IOException ioe) {
656 // doesn't exist
657 //errMgr.IOError(null, ErrorType.NO_SUCH_TEMPLATE, ioe, fileName);
658 return null;
659 }
660 return loadTemplateFile("", fileName, fs);
661 }
662
663 /** Load template stream into this group. {@code unqualifiedFileName} is
664 * {@code "a.st"}. The {@code prefix} is path from group root to

Callers

nothing calls this directly

Calls 1

loadTemplateFileMethod · 0.45

Tested by

no test coverage detected