org.infolayer.templates.plain
Class PlainLoader

java.lang.Object
  extended byorg.infolayer.templates.TemplateLoader
      extended byorg.infolayer.templates.plain.PlainLoader

public class PlainLoader
extends TemplateLoader

Author:
Stefan Haustein Loader which transforms the result to plain text.

Field Summary
 
Fields inherited from class org.infolayer.templates.TemplateLoader
TEMPLATE_NAMESPACE
 
Constructor Summary
PlainLoader(UmlModel model, java.lang.String base)
           
 
Method Summary
 void apply(IlRequest request, Template template, java.lang.Object self)
          Sets the template encoding(!)
 
Methods inherited from class org.infolayer.templates.TemplateLoader
addMapping, createElement, defineCharacterEntity, defineEntities, getBase, getModel, getTemplate, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainLoader

public PlainLoader(UmlModel model,
                   java.lang.String base)
Parameters:
model -
base -
Method Detail

apply

public void apply(IlRequest request,
                  Template template,
                  java.lang.Object self)
           throws java.io.IOException
Sets the template encoding(!) instead of the "guessed" preferred encoding of the browser. Does NOT write an XML epilog for obvious reasons.

Overrides:
apply in class TemplateLoader
Throws:
java.io.IOException