KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > xml > transform > impl > html > TidyTransformerServiceImpl


1 /***************************************************************************
2  * Copyright 2001-2005 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.services.xml.transform.impl.html;
7
8 import org.exoplatform.services.xml.transform.html.HTMLTransformerService;
9 import org.exoplatform.services.xml.transform.html.HTMLTransformer;
10 import javax.xml.transform.TransformerConfigurationException JavaDoc;
11 import org.exoplatform.services.xml.resolving.XMLResolvingService;
12
13 /**
14  * Created by The eXo Platform SARL .
15  *
16  * @author <a HREF="mailto:geaz@users.sourceforge.net">Gennady Azarenkov</a>
17  * @author <a HREF="mailto:alex.kravchuk@gmail.com">Alexander Kravchuk</a>
18  * @version $Id: TidyTransformerServiceImpl.java 566 2005-01-25 12:50:49Z kravchuk $
19  */

20 public class TidyTransformerServiceImpl implements HTMLTransformerService
21 {
22     private XMLResolvingService resolvingService;
23
24     public TidyTransformerServiceImpl(XMLResolvingService resolvingService){
25         this.resolvingService = resolvingService;
26     }
27
28     public HTMLTransformer getTransformer() throws
29             TransformerConfigurationException JavaDoc {
30         TidyTransformerImpl transf = new TidyTransformerImpl();
31         transf.resolvingService = resolvingService;
32         return transf;
33     }
34
35 }
36
Popular Tags