Skip to content

Commit

Permalink
LUCENE-4228: refactor CharFilter to be a java.io.FilterReader
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1362442 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rmuir committed Jul 17, 2012
1 parent 793075c commit 238a455
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package org.apache.solr.handler.dataimport;

import org.apache.lucene.analysis.charfilter.HTMLStripCharFilter;
import org.apache.lucene.analysis.CharReader;

import java.io.IOException;
import java.io.StringReader;
Expand Down Expand Up @@ -73,7 +72,7 @@ private Object stripHTML(String value, String column) {
StringBuilder out = new StringBuilder();
StringReader strReader = new StringReader(value);
try {
HTMLStripCharFilter html = new HTMLStripCharFilter(CharReader.get(strReader.markSupported() ? strReader : new BufferedReader(strReader)));
HTMLStripCharFilter html = new HTMLStripCharFilter(strReader.markSupported() ? strReader : new BufferedReader(strReader));
char[] cbuf = new char[1024 * 10];
while (true) {
int count = html.read(cbuf);
Expand Down

0 comments on commit 238a455

Please sign in to comment.