Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxp/src/javax/xml/transform/sax/TransformerHandler.java
32288 views
/*1* Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.xml.transform.sax;2627import javax.xml.transform.Result;28import javax.xml.transform.Transformer;2930import org.xml.sax.ContentHandler;31import org.xml.sax.DTDHandler;32import org.xml.sax.ext.LexicalHandler;3334/**35* A TransformerHandler36* listens for SAX ContentHandler parse events and transforms37* them to a Result.38*/39public interface TransformerHandler40extends ContentHandler, LexicalHandler, DTDHandler {4142/**43* <p>Set the <code>Result</code> associated with this44* <code>TransformerHandler</code> to be used for the transformation.</p>45*46* @param result A <code>Result</code> instance, should not be47* <code>null</code>.48*49* @throws IllegalArgumentException if result is invalid for some reason.50*/51public void setResult(Result result) throws IllegalArgumentException;5253/**54* Set the base ID (URI or system ID) from where relative55* URLs will be resolved.56* @param systemID Base URI for the source tree.57*/58public void setSystemId(String systemID);5960/**61* Get the base ID (URI or system ID) from where relative62* URLs will be resolved.63* @return The systemID that was set with {@link #setSystemId}.64*/65public String getSystemId();6667/**68* <p>Get the <code>Transformer</code> associated with this handler, which69* is needed in order to set parameters and output properties.</p>70*71* @return <code>Transformer</code> associated with this72* <code>TransformerHandler</code>.73*/74public Transformer getTransformer();75}767778