public static final class SoyFileSupplier.Factory extends Object
SoyFileSuppliers.
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Method and Description |
|---|---|
static SoyFileSupplier |
create(CharSequence content,
SoyFileKind soyFileKind,
String filePath)
Creates a new
SoyFileSupplier given the file content provided as a string, as well
as the desired file path for messages. |
static SoyFileSupplier |
create(com.google.common.io.CharSource contentSource,
SoyFileKind soyFileKind,
String filePath)
Creates a new
SoyFileSupplier given a CharSource for the file content,
as well as the desired file path for messages. |
static SoyFileSupplier |
create(File inputFile,
SoyFileKind soyFileKind)
Creates a new
SoyFileSupplier given a File. |
static SoyFileSupplier |
create(URL inputFileUrl,
SoyFileKind soyFileKind)
Creates a new
SoyFileSupplier given a resource URL. |
static SoyFileSupplier |
create(URL inputFileUrl,
SoyFileKind soyFileKind,
String filePath)
Creates a new
SoyFileSupplier given a resource URL, as well as the desired
file path for messages. |
public static SoyFileSupplier create(com.google.common.io.CharSource contentSource, SoyFileKind soyFileKind, String filePath)
SoyFileSupplier given a CharSource for the file content,
as well as the desired file path for messages.contentSource - Source for the Soy file content.soyFileKind - The kind of this input Soy file.filePath - The path to the Soy file, used for as a unique map/set key and for messages.public static SoyFileSupplier create(File inputFile, SoyFileKind soyFileKind)
SoyFileSupplier given a File.inputFile - The Soy file.soyFileKind - The kind of this input Soy file.public static SoyFileSupplier create(URL inputFileUrl, SoyFileKind soyFileKind, String filePath)
SoyFileSupplier given a resource URL, as well as the desired
file path for messages.inputFileUrl - The URL of the Soy file.soyFileKind - The kind of this input Soy file.filePath - The path to the Soy file, used for as a unique map/set key and for messages.public static SoyFileSupplier create(URL inputFileUrl, SoyFileKind soyFileKind)
SoyFileSupplier given a resource URL.
Important: This function assumes that the desired file path is returned by
inputFileUrl.toString(). If this is not the case, please use
create(java.net.URL, SoyFileKind, String) instead.
inputFileUrl - The URL of the Soy file.soyFileKind - The kind of this input Soy file.create(java.net.URL, SoyFileKind, String)public static SoyFileSupplier create(CharSequence content, SoyFileKind soyFileKind, String filePath)
SoyFileSupplier given the file content provided as a string, as well
as the desired file path for messages.content - The Soy file content.soyFileKind - The kind of this input Soy file.filePath - The path to the Soy file, used for as a unique map/set key and for messages.