KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > xml > transform > AbstractTransformer


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;
7
8 import javax.xml.transform.Source JavaDoc;
9 import javax.xml.transform.Result JavaDoc;
10 import javax.xml.transform.TransformerException JavaDoc;
11
12 /**
13  * Created by The eXo Platform SARL .
14  *
15  * @author <a HREF="mailto:geaz@users.sourceforge.net">Gennady Azarenkov</a>
16  * @author <a HREF="mailto:alex.kravchuk@gmail.com">Alexander Kravchuk</a>
17  * @version $Id: AbstractTransformer.java 565 2005-01-25 12:48:13Z kravchuk $
18  */

19
20 public interface AbstractTransformer {
21         /**
22          * Initialize a result of transformation
23          *
24          * @param result Result
25          * @throws NotSupportedIOTypeException if try to initialize with
26          * not supported implementation of Result
27          */

28         void initResult(Result JavaDoc result) throws NotSupportedIOTypeException;
29
30         /**
31          * Transform source data to result
32          *
33          * @param source Source - input of transformation
34          *
35          * @throws NotSupportedIOTypeException if not supported implementation
36          * of Source
37          * @throws TransformerException if error occurred on transformation process
38          * @throws IllegalStateException if result not initialized by initResult
39          */

40         void transform(Source JavaDoc source) throws NotSupportedIOTypeException,
41             TransformerException JavaDoc, IllegalStateException JavaDoc;
42 }
43
Popular Tags