Permalink
Browse files

Use plain-old input stream and reader, none of this TextReader nonsense.

  • Loading branch information...
1 parent c33d7e6 commit 1cfd2934cc37662c1b201bd2416d2841702c2886 @aaronbinns committed Jan 15, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/java/org/archive/jbs/Merge.java
View
5 src/java/org/archive/jbs/Merge.java
@@ -33,9 +33,6 @@
import org.apache.nutch.parse.Outlink;
import org.apache.nutch.metadata.Metadata;
-import org.archive.jbs.util.TextReader;
-
-
/**
* Command-line driver and MapReduce code for converting and merging
* Documents. Documents can be converted/synthesized from text-files
@@ -362,7 +359,7 @@ public int run( String[] args ) throws Exception
public static Document fromText( Text text )
throws IOException
{
- return new Document( new TextReader( text ) );
+ return new Document( new InputStreamReader( new ByteArrayInputStream( text.getBytes() ), "utf-8" ) );
}
}

0 comments on commit 1cfd293

Please sign in to comment.