Class URLTemplateSource

    • Constructor Detail

      • URLTemplateSource

        public URLTemplateSource​(java.lang.String filename,
                                 java.net.URL resource)
        Creates a new URLTemplateSource.
        Parameters:
        filename - The file's name.
        resource - The resource. Required.
    • Method Detail

      • content

        public java.lang.String content​(java.nio.charset.Charset charset)
                                 throws java.io.IOException
        Description copied from interface: TemplateSource
        The template content.
        Parameters:
        charset - Charset to use.
        Returns:
        The template content.
        Throws:
        java.io.IOException - If the template can't read.
      • filename

        public java.lang.String filename()
        Description copied from interface: TemplateSource
        The file's name.
        Returns:
        The file's name.
      • lastModified

        public long lastModified()
        Description copied from interface: TemplateSource
        The last modified date.
        Returns:
        The last modified date.