Skip to content

Commit

Permalink
add convenience ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
parrt committed Nov 9, 2018
1 parent 1b9656b commit b5a82e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/org/stringtemplate/v4/STGroupFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ public STGroupFile(URL url, String encoding,
this.fileName = null;
}

/** Convenience ctor */
public STGroupFile(URL url) { this(url, "UTF-8",'<', '>'); }

@Override
public boolean isDictionary(String name) {
if ( !alreadyLoaded ) load();
Expand Down

0 comments on commit b5a82e0

Please sign in to comment.