Create an STGroupFile
that reads a template group from a file, with a
specific encoding, start character, and stop character.
Create an STGroupFile
that reads a template group from a file, with a
specific encoding, start character, and stop character. If the file
doesn't exist, this method doesn't throw an error; instead, the error
shows up when you later call instanceOf()
on the resulting group. (That
behavior is an artifact of the underlying StringTemplate API.)
the path of the file
the encoding
the starting delimiter character
the ending delimiter character
the group
Create an STGroupFile
that reads a template group from a file, with a
specific encoding, using the default start and stop characters.
Create an STGroupFile
that reads a template group from a file, with a
specific encoding, using the default start and stop characters. If the
file doesn't exist, this method doesn't throw an error; instead, the
error shows up when you later call instanceOf()
on the resulting group.
(That behavior is an artifact of the underlying StringTemplate API.)
the path of the file
the encoding
the group
Create an STGroupFile
that reads a template group from a file, assuming
the default encoding, using the default start and stop characters.
Create an STGroupFile
that reads a template group from a file, assuming
the default encoding, using the default start and stop characters. If
the file doesn't exist, this method doesn't throw an error; instead, the
error shows up when you later call instanceOf()
on the resulting group.
(That behavior is an artifact of the underlying StringTemplate API.)
The specified path can be absolute or relative. If it's relative, and StringTemplate cannot find the file, it will look for the file as a resource within the CLASSPATH.
the path of the file
the group
Create an STGroupFile
that reads a template group from a URL, with a
specified encoding, using the default start and stop characters.
Create an STGroupFile
that reads a template group from a URL, with a
specified encoding, using the default start and stop characters. If the
URL doesn't exist, this method doesn't throw an error; instead, the error
shows up when you later call instanceOf()
on the resulting group. (That
behavior is an artifact of the underlying StringTemplate API.)
the URL from which to read
the encoding
the group
Create an STGroupFile
that reads a template group from a URL, assuming
the default encoding, using the default start and stop characters.
Create an STGroupFile
that reads a template group from a URL, assuming
the default encoding, using the default start and stop characters. If
the URL doesn't exist, this method doesn't throw an error; instead, the
error shows up when you later call instanceOf()
on the resulting group.
(That behavior is an artifact of the underlying StringTemplate API.)
the URL from which to read
the group
Companion object for
STGroupFile
. This object providesapply()
methods for instantiatingSTGroupFile
objects.