2
* Copyright 2003-2004 The Apache Software Foundation.
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
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* 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.
17
// $Id: TransformerHandler.java 226236 2005-06-17 03:10:33Z mrglavas $
19
package javax.xml.transform.sax;
21
import javax.xml.transform.Result;
22
import javax.xml.transform.Transformer;
24
import org.xml.sax.ContentHandler;
25
import org.xml.sax.DTDHandler;
26
import org.xml.sax.ext.LexicalHandler;
29
* A TransformerHandler
30
* listens for SAX ContentHandler parse events and transforms
33
public interface TransformerHandler
34
extends ContentHandler, LexicalHandler, DTDHandler {
37
* <p>Set the <code>Result</code> associated with this
38
* <code>TransformerHandler</code> to be used for the transformation.</p>
40
* @param result A <code>Result</code> instance, should not be
43
* @throws IllegalArgumentException if result is invalid for some reason.
45
public void setResult(Result result) throws IllegalArgumentException;
48
* Set the base ID (URI or system ID) from where relative
49
* URLs will be resolved.
50
* @param systemID Base URI for the source tree.
52
public void setSystemId(String systemID);
55
* Get the base ID (URI or system ID) from where relative
56
* URLs will be resolved.
57
* @return The systemID that was set with {@link #setSystemId}.
59
public String getSystemId();
62
* <p>Get the <code>Transformer</code> associated with this handler, which
63
* is needed in order to set parameters and output properties.</p>
65
* @return <code>Transformer</code> associated with this
66
* <code>TransformerHandler</code>.
68
public Transformer getTransformer();