View Javadoc

1   /*
2    * Copyright 2008 Hippo
3    *
4    * Licensed under the Apache License, Version 2.0 (the  "License"); 
5    * you may not use this file except in compliance with the License. 
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" 
12   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
13   * See the License for the specific language governing permissions and 
14   * limitations under the License.
15   */
16  package nl.hippo.portal.cms.scripting.xslt;
17  
18  import java.io.InputStream;
19  import java.io.Writer;
20  import java.util.Map;
21  
22  import javax.xml.transform.TransformerException;
23  
24  /***
25   * @author <a href="mailto:d.dam@hippo.nl">Dennis Dam</a>
26   *
27   * @version $Id$
28   */
29  public interface XSLTTransformerService
30  {
31      public String transform(InputStream in, InputStream xslt) throws TransformerException;
32      public String transform(InputStream in, InputStream xslt, Map parameters) throws TransformerException;
33  
34      public void transform(InputStream in, InputStream xslt, Writer out) throws TransformerException;
35      public void transform(InputStream in, InputStream xslt, Map parameters, Writer out) throws TransformerException;
36      
37  }