Class PackageTextTemplate

All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, IClusterable, IResourceStream, IStringResourceStream, IModifiable

public class PackageTextTemplate extends TextTemplate
A String resource that can be appended to.
Since:
1.2.6
Author:
Eelco Hillenius
See Also:
  • Field Details

  • Constructor Details

    • PackageTextTemplate

      public PackageTextTemplate(Class<?> clazz, String fileName)
      Constructor.
      Parameters:
      clazz - the Class to be used for retrieving the classloader for loading the PackagedTextTemplate
      fileName - the name of the file, relative to the clazz position
    • PackageTextTemplate

      public PackageTextTemplate(Class<?> clazz, String fileName, String contentType)
      Constructor.
      Parameters:
      clazz - the Class to be used for retrieving the classloader for loading the PackagedTextTemplate
      fileName - the name of the file, relative to the clazz position
      contentType - the mime type of this resource, such as "image/jpeg" or " text/html"
    • PackageTextTemplate

      public PackageTextTemplate(Class<?> clazz, String fileName, String contentType, String encoding)
      Constructor.
      Parameters:
      clazz - the Class to be used for retrieving the classloader for loading the PackagedTextTemplate
      fileName - the name of the file, relative to the clazz position
      contentType - the mime type of this resource, such as "image/jpeg" or " text/html"
      encoding - the file's encoding, for example, "UTF-8"
    • PackageTextTemplate

      public PackageTextTemplate(Class<?> clazz, String fileName, String style, String variation, Locale locale, String contentType, String encoding)
      Constructor.
      Parameters:
      clazz - the Class to be used for retrieving the classloader for loading the PackagedTextTemplate
      fileName - the name of the file, relative to the clazz position
      style - Any resource style, such as a skin style (see Session)
      variation - The template's variation (of the style)
      locale - The locale of the resource to load
      contentType - the mime type of this resource, such as "image/jpeg" or " text/html"
      encoding - the file's encoding, for example, "UTF-8"
  • Method Details