public final class StableSoyFileSupplier extends AbstractSoyFileSupplier
CharSource to supply a Reader for the
file content, and also the file path.
Important: Do not use outside of Soy code (treat as superpackage-private).
SoyFileSupplier.Factory, SoyFileSupplier.VersionfilePath, soyFileKind| Constructor and Description |
|---|
StableSoyFileSupplier(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. |
| Modifier and Type | Method and Description |
|---|---|
SoyFileSupplier.Version |
getVersion()
Returns the version of the Soy file read.
|
boolean |
hasChangedSince(SoyFileSupplier.Version version)
True if the underlying resource has changed since the given version.
|
Reader |
open()
Returns a
Reader for the Soy file content. |
asCharSource, equals, getFilePath, getSoyFileKind, hashCode, openStreampublic StableSoyFileSupplier(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 boolean hasChangedSince(SoyFileSupplier.Version version)
SoyFileSupplierpublic Reader open() throws IOException
SoyFileSupplierReader for the Soy file content.IOException - If there is an error opening the input.public SoyFileSupplier.Version getVersion()
SoyFileSupplier