franta-hg@76: /** franta-hg@76: * Alt2XML franta-hg@76: * Copyright © 2014 František Kučera (frantovo.cz) franta-hg@76: * franta-hg@76: * This program is free software: you can redistribute it and/or modify franta-hg@76: * it under the terms of the GNU General Public License as published by franta-hg@111: * the Free Software Foundation, version 3 of the License. franta-hg@76: * franta-hg@76: * This program is distributed in the hope that it will be useful, franta-hg@76: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@76: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@76: * GNU General Public License for more details. franta-hg@76: * franta-hg@76: * You should have received a copy of the GNU General Public License franta-hg@76: * along with this program. If not, see . franta-hg@76: */ franta-hg@103: package cz.frantovo.alt2xml.in.fs; franta-hg@76: franta-hg@76: import cz.frantovo.alt2xml.Alt2XmlRegexReaderFactory; franta-hg@76: import java.util.regex.Pattern; franta-hg@76: import org.xml.sax.XMLReader; franta-hg@76: franta-hg@76: /** franta-hg@76: * franta-hg@76: * @author Ing. František Kučera (frantovo.cz) franta-hg@76: */ franta-hg@76: public class ReaderFactory extends Alt2XmlRegexReaderFactory { franta-hg@76: franta-hg@103: private static final Pattern pattern = Pattern.compile("^file:.*/$"); franta-hg@76: franta-hg@76: @Override franta-hg@76: protected Pattern getSystemIdPattern() { franta-hg@76: return pattern; franta-hg@76: } franta-hg@76: franta-hg@76: @Override franta-hg@76: public XMLReader getReader() { franta-hg@76: return new Reader(); franta-hg@76: } franta-hg@76: }