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

Method loadAbsoluteTemplateFile

output/java/1.4.15/STGroup.java:650–662  ·  view source on GitHub ↗

Load template file into this group using absolute fileName.

(String fileName)

Source from the content-addressed store, hash-verified

648 /** Load template file into this group using absolute {@code fileName}. */
649
650 public CompiledST loadAbsoluteTemplateFile(String fileName) {
651 ANTLRFileStream fs;
652 try {
653 fs = new ANTLRFileStream(fileName, encoding);
654 fs.name = fileName;
655 }
656 catch (IOException ioe) {
657 // doesn't exist
658 //errMgr.IOError(null, ErrorType.NO_SUCH_TEMPLATE, ioe, fileName);
659 return null;
660 }
661 return loadTemplateFile("", fileName, fs);
662 }
663
664 /** Load template stream into this group. {@code unqualifiedFileName} is
665 * {@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