@@ -0,0 +1,3279 @@
+/*%0A * Copyright 2011-2015 The Trustees of the University of Pennsylvania%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage edu.upenn.library.xmlaminar.parallel;%0A%0Aimport java.io.IOException;%0Aimport org.xml.sax.ContentHandler;%0Aimport org.xml.sax.DTDHandler;%0Aimport org.xml.sax.EntityResolver;%0Aimport org.xml.sax.ErrorHandler;%0Aimport org.xml.sax.InputSource;%0Aimport org.xml.sax.SAXException;%0Aimport org.xml.sax.SAXNotRecognizedException;%0Aimport org.xml.sax.SAXNotSupportedException;%0Aimport org.xml.sax.XMLReader;%0A%0A/**%0A *%0A * @author magibney%0A */%0Apublic class DummyXMLReader implements XMLReader %7B%0A%0A    @Override%0A    public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public void setEntityResolver(EntityResolver resolver) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public EntityResolver getEntityResolver() %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public void setDTDHandler(DTDHandler handler) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public DTDHandler getDTDHandler() %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public void setContentHandler(ContentHandler handler) %7B%0A        // return immediately%0A    %7D%0A%0A    @Override%0A    public ContentHandler getContentHandler() %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public void setErrorHandler(ErrorHandler handler) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public ErrorHandler getErrorHandler() %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    @Override%0A    public void parse(InputSource input) throws IOException, SAXException %7B%0A        // return immediately%0A    %7D%0A%0A    @Override%0A    public void parse(String systemId) throws IOException, SAXException %7B%0A        // return immediately%0A    %7D%0A    %0A%7D%0A

add DummyXMLFilter to allow simplified synchronous parsing