public class URLTemplateSource extends AbstractTemplateSource
URL TemplateSource.| Constructor and Description |
|---|
URLTemplateSource(java.lang.String filename,
java.net.URL resource)
Creates a new
URLTemplateSource. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
content(java.nio.charset.Charset charset)
The template content.
|
java.lang.String |
filename()
The file's name.
|
long |
lastModified()
The last modified date.
|
equals, hashCode, toStringpublic URLTemplateSource(java.lang.String filename,
java.net.URL resource)
URLTemplateSource.filename - The file's name.resource - The resource. Required.public java.lang.String content(java.nio.charset.Charset charset)
throws java.io.IOException
TemplateSourcecharset - Charset to use.java.io.IOException - If the template can't read.public java.lang.String filename()
TemplateSourcepublic long lastModified()
TemplateSourceCopyright © 2010 - 2023 Adobe. All Rights Reserved