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()
The template content.
|
java.lang.String |
filename()
The file's name.
|
long |
lastModified()
The last modified date.
|
equals, hashCode, toString
public URLTemplateSource(java.lang.String filename, java.net.URL resource)
URLTemplateSource
.filename
- The file's name.resource
- The resource. Required.public java.lang.String content() throws java.io.IOException
TemplateSource
java.io.IOException
- If the template can't read.public java.lang.String filename()
TemplateSource
public long lastModified()
TemplateSource
Copyright © 2010 - 2020 Adobe. All Rights Reserved