METAMODEL-1086: Fixed
authorKasper Sørensen <i.am.kasper.sorensen@gmail.com>
Thu, 9 Jun 2016 04:20:40 +0000 (21:20 -0700)
committerKasper Sørensen <i.am.kasper.sorensen@gmail.com>
Thu, 9 Jun 2016 04:20:40 +0000 (21:20 -0700)
Fixes #104

CHANGES.md
csv/src/main/java/org/apache/metamodel/csv/CsvDataContext.java

index 52f1323..92e13e4 100644 (file)
@@ -1,7 +1,7 @@
 ### Apache MetaModel 4.5.4 (work in progress)
 
- * [METAMODEL-1088] - Add support for aliases in MongoDB
-
+ * [METAMODEL-1088] - Add support for aliases in MongoDB.
+ * [METAMODEL-1086] - Fixed encoding issue when CsvDataContext is instantiated with InputStream.
 
 ### Apache MetaModel 4.5.3
 
index 3787453..ee456f0 100644 (file)
@@ -244,7 +244,7 @@ public final class CsvDataContext extends QueryPostprocessDataContext implements
         file = fileCandidate;
 
         final BufferedWriter writer = FileHelper.getBufferedWriter(file, encoding);
-        final BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
+        final BufferedReader reader = FileHelper.getBufferedReader(inputStream, encoding);
 
         try {
             file.createNewFile();