it.eng.spago.transcoding
Class Transcoder

java.lang.Object
  extended by it.eng.spago.transcoding.Transcoder
All Implemented Interfaces:
TranscoderIFace

public class Transcoder
extends java.lang.Object
implements TranscoderIFace

Questa classe effettua la transcodifica: data una stringa contente XML, applica un XSL(già processato, ovvero un'istanza di Templates) e produce HTML, WML etc Esempio di utilizzo della classe: Transcoder transcoder = new Transcoder(); //out può essere un'istanza di PrintWriter o OutputStream(vedere doc Xalan) Result result = new StreamResult(out); transcoder.setXSL(template); transcoder.perform(list.perform(), result);

Version:
1.0
Author:
Daniela Butano

Constructor Summary
Transcoder()
           
 
Method Summary
 void perform(SourceBean toRender, javax.xml.transform.Templates xslTemplate, javax.xml.transform.Result out)
          Perform the XSL transformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transcoder

public Transcoder()
Method Detail

perform

public void perform(SourceBean toRender,
                    javax.xml.transform.Templates xslTemplate,
                    javax.xml.transform.Result out)
Description copied from interface: TranscoderIFace
Perform the XSL transformation

Specified by:
perform in interface TranscoderIFace
Parameters:
toRender - The SourceBean to render.
xslTemplate - The XSL to apply
out - The result of transformation