Permalink
Browse files

Harmonizing use of xml reader / sax parser in XMLBlacklistImporter

eliminating the need for lib/xercesImpl.jar
  • Loading branch information...
reger24 committed Aug 5, 2017
1 parent 275d65f commit fb719943428789d4ab6fccd9b76af0696891b495
Showing with 3 additions and 212 deletions.
  1. +0 −1 .classpath
  2. +0 −1 build.xml
  3. BIN lib/xercesImpl.jar
  4. +0 −202 lib/xercesImpl.license
  5. +1 −6 pom.xml
  6. +2 −2 source/net/yacy/data/list/XMLBlacklistImporter.java
@@ -21,7 +21,6 @@
<classpathentry kind="lib" path="lib/jakarta-oro-2.0.8.jar"/>
<classpathentry kind="lib" path="lib/commons-fileupload-1.3.3.jar"/>
<classpathentry kind="lib" path="lib/json-simple-1.1.1.jar"/>
<classpathentry kind="lib" path="lib/xercesImpl.jar"/>
<classpathentry kind="lib" path="lib/xml-apis.jar"/>
<classpathentry kind="lib" path="lib/commons-compress-1.14.jar"/>
<classpathentry kind="lib" path="lib/commons-lang-2.6.jar"/>
@@ -257,7 +257,6 @@
<pathelement location="${lib}/stax2-api_3.1.4.jar" />
<pathelement location="${lib}/weupnp-0.1.4.jar" />
<pathelement location="${lib}/woodstox-core-asl-4.4.1.jar" />
<pathelement location="${lib}/xercesImpl.jar" />
<pathelement location="${lib}/xml-apis.jar" />
<pathelement location="${lib}/xmpcore-5.1.3.jar" />
<pathelement location="${lib}/zookeeper-3.4.10.jar" />
BIN -1.3 MB lib/xercesImpl.jar
Binary file not shown.

This file was deleted.

Oops, something went wrong.
@@ -612,12 +612,7 @@
<groupId>org.bitlet</groupId>
<artifactId>weupnp</artifactId>
<version>0.1.4</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.11.0</version>
</dependency>
</dependency>
<!-- special setup for dependencies not found in maven repository
to installed in local repository -->
@@ -28,12 +28,12 @@
import java.io.InputStream;
import java.io.Reader;
import org.apache.xerces.parsers.SAXParser;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.helpers.XMLReaderFactory;
/**
* This class provides methods to import blacklists from an XML file (see
@@ -56,7 +56,7 @@
*/
public synchronized ListAccumulator parse(InputSource input) throws IOException, SAXException {
XMLReader reader = new SAXParser();
XMLReader reader = XMLReaderFactory.createXMLReader();
reader.setContentHandler(this);
reader.parse(input);

0 comments on commit fb71994

Please sign in to comment.