You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/07/09 20:15:52 UTC
svn commit: r1359324 -
/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java
Author: rmuir
Date: Mon Jul 9 18:15:52 2012
New Revision: 1359324
URL: http://svn.apache.org/viewvc?rev=1359324&view=rev
Log:
LUCENE-4199: dont use ioutils here
Modified:
lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java
Modified: lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java?rev=1359324&r1=1359323&r2=1359324&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java (original)
+++ lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java Mon Jul 9 18:15:52 2012
@@ -29,9 +29,6 @@ import java.net.URL;
import java.net.URLConnection;
import java.util.Locale;
-import org.apache.lucene.util.IOUtils;
-
-
/**
* Three concrete implementations for ContentStream - one for File/URL/String
*
@@ -133,7 +130,7 @@ public abstract class ContentStreamBase
public Reader getReader() throws IOException {
String charset = getCharsetFromContentType( contentType );
return charset == null
- ? new InputStreamReader(getStream(), IOUtils.CHARSET_UTF_8)
+ ? new InputStreamReader(getStream(), "UTF-8")
: new InputStreamReader( getStream(), charset );
}
}