File tree 1 file changed +4
-4
lines changed
src/test/java/com/marklogic/client/test
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,17 @@ static void loadCities(CityWriter cityWriter) throws Exception {
116
116
// load all the countries into a HashMap (this isn't the big data set)
117
117
// we'll attach country info to each city (that's the big data set)
118
118
Map <String , Country > countries = new HashMap <String , Country >();
119
- System .out .println ("1 :" + BulkReadWriteTest .class .getClassLoader ().getResourceAsStream (COUNTRIES_FILE ));
120
- BufferedReader countryReader = new BufferedReader (Common .testFileToReader (COUNTRIES_FILE ));
119
+ System .out .println ("Reading countries :" + BulkReadWriteTest .class .getClassLoader ().getResourceAsStream (COUNTRIES_FILE ));
120
+ BufferedReader countryReader = new BufferedReader (Common .testFileToReader (COUNTRIES_FILE , "UTF-8" ));
121
121
String line ;
122
122
while ((line = countryReader .readLine ()) != null ) {
123
123
addCountry (line , countries );
124
124
}
125
125
countryReader .close ();
126
126
127
127
// write batches of cities combined with their country info
128
- System .out .println (BulkReadWriteTest .class .getClassLoader ().getResource (CITIES_FILE ));
129
- BufferedReader cityReader = new BufferedReader (Common .testFileToReader (CITIES_FILE ));
128
+ System .out .println ("Reading cities:" + BulkReadWriteTest .class .getClassLoader ().getResource (CITIES_FILE ));
129
+ BufferedReader cityReader = new BufferedReader (Common .testFileToReader (CITIES_FILE , "UTF-8" ));
130
130
line = null ;
131
131
int numWritten = 0 ;
132
132
while ((line = cityReader .readLine ()) != null ) {
You can’t perform that action at this time.
0 commit comments