public final class VolatileSoyFileSupplier extends AbstractSoyFileSupplier
Important: Do not use outside of Soy code (treat as superpackage-private).
SoyFileSupplier.Factory, SoyFileSupplier.VersionfilePath, soyFileKind| Constructor and Description |
|---|
VolatileSoyFileSupplier(File file,
SoyFileKind soyFileKind)
Creates a Soy file supplier whose content is backed by the given file which is prone to change
without warning.
|
| 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 VolatileSoyFileSupplier(File file, SoyFileKind soyFileKind)
file - The underlying file to read.soyFileKind - The kind of this input Soy file.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