mirror of https://github.com/apache/lucene.git
SOLR-6787 removing the dependency on zk jar for post.jar
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1644489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f268fd84c
commit
fc061ed8a2
|
@ -62,7 +62,6 @@ import javax.xml.xpath.XPathExpression;
|
|||
import javax.xml.xpath.XPathExpressionException;
|
||||
import javax.xml.xpath.XPathFactory;
|
||||
|
||||
import org.apache.zookeeper.server.ByteBufferInputStream;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
|
@ -591,7 +590,7 @@ public class SimplePostTool {
|
|||
numPages++;
|
||||
// Pull links from HTML pages only
|
||||
if(recursive > level && result.contentType.equals("text/html")) {
|
||||
Set<URL> children = pageFetcher.getLinksFromWebPage(u, new ByteBufferInputStream(result.content), result.contentType, postUrl);
|
||||
Set<URL> children = pageFetcher.getLinksFromWebPage(u, new ByteArrayInputStream(result.content.array(), result.content.arrayOffset(), result.content.limit()), result.contentType, postUrl);
|
||||
subStack.addAll(children);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue