Interface TemplateProcessor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getDefaultEncoding()
      Gets the default encoding
      boolean hasTemplate​(java.lang.String template)
      Determines if a template exists
      void process​(java.lang.String template, java.lang.Object model, java.io.Writer out)
      Process a template against the supplied data model and write to the out.
      void processString​(java.lang.String template, java.lang.Object model, java.io.Writer out)
      Process a string template against the supplied data model and write to the out.
      void reset()
      Reset the Template Processor
    • Method Detail

      • hasTemplate

        boolean hasTemplate​(java.lang.String template)
        Determines if a template exists
        Parameters:
        template - String
        Returns:
        true => exists
      • process

        void process​(java.lang.String template,
                     java.lang.Object model,
                     java.io.Writer out)
        Process a template against the supplied data model and write to the out.
        Parameters:
        template - Template name/path
        model - Object model to process template against
        out - Writer object to send output too
      • processString

        void processString​(java.lang.String template,
                           java.lang.Object model,
                           java.io.Writer out)
        Process a string template against the supplied data model and write to the out.
        Parameters:
        template - Template string
        model - Object model to process template against
        out - Writer object to send output too
      • getDefaultEncoding

        java.lang.String getDefaultEncoding()
        Gets the default encoding
        Returns:
        default encoding
      • reset

        void reset()
        Reset the Template Processor