franta-hg@43: /** franta-hg@43: * Alt2XML franta-hg@43: * Copyright © 2014 František Kučera (frantovo.cz) franta-hg@43: * franta-hg@43: * This program is free software: you can redistribute it and/or modify franta-hg@43: * it under the terms of the GNU General Public License as published by franta-hg@43: * the Free Software Foundation, either version 3 of the License, or franta-hg@43: * (at your option) any later version. franta-hg@43: * franta-hg@43: * This program is distributed in the hope that it will be useful, franta-hg@43: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@43: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@43: * GNU General Public License for more details. franta-hg@43: * franta-hg@43: * You should have received a copy of the GNU General Public License franta-hg@43: * along with this program. If not, see . franta-hg@43: */ franta-hg@43: package cz.frantovo.alt2xml.out.xml; franta-hg@43: franta-hg@43: import cz.frantovo.alt2xml.out.AbstractAction; franta-hg@43: import cz.frantovo.alt2xml.out.ActionContext; franta-hg@43: import javax.xml.stream.XMLStreamWriter; franta-hg@43: import org.xml.sax.helpers.DefaultHandler; franta-hg@43: franta-hg@43: /** franta-hg@43: * franta-hg@43: * @author Ing. František Kučera (frantovo.cz) franta-hg@43: */ franta-hg@43: public class XMLAction extends AbstractAction { franta-hg@43: franta-hg@43: private final XMLHandler handler; franta-hg@43: franta-hg@43: public XMLAction(ActionContext actionContext, XMLStreamWriter writer) { franta-hg@43: super(actionContext); franta-hg@43: handler = new XMLHandler(writer); franta-hg@43: } franta-hg@43: franta-hg@43: @Override franta-hg@43: public DefaultHandler getDefaultHandler() { franta-hg@43: return handler; franta-hg@43: } franta-hg@43: }