Revision 46054 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.csv/src/main/java/org/gvsig/fmap/dal/store/csv/simplereaders/JSonReader.java
JSonReader.java | ||
---|---|---|
6 | 6 |
package org.gvsig.fmap.dal.store.csv.simplereaders; |
7 | 7 |
|
8 | 8 |
import java.io.IOException; |
9 |
import java.io.InputStreamReader;
|
|
9 |
import java.io.Reader; |
|
10 | 10 |
import java.util.ArrayList; |
11 | 11 |
import java.util.List; |
12 |
import java.util.Set; |
|
13 | 12 |
import javax.json.JsonArray; |
14 | 13 |
import javax.json.JsonObject; |
15 | 14 |
import javax.json.JsonString; |
16 |
import javax.json.JsonStructure; |
|
17 | 15 |
import javax.json.JsonValue; |
18 | 16 |
import org.apache.commons.io.IOUtils; |
19 | 17 |
import org.apache.commons.lang3.StringUtils; |
... | ... | |
40 | 38 |
private int currentElement = 0; |
41 | 39 |
private final CSVStoreParameters parameters; |
42 | 40 |
|
43 |
public JSonReader(InputStreamReader reader, CSVStoreParameters csvParameters) throws IOException {
|
|
41 |
public JSonReader(Reader reader, CSVStoreParameters csvParameters) throws IOException { |
|
44 | 42 |
String input = IOUtils.toString(reader); |
45 | 43 |
this.jsonData = Json.createArray(input); |
46 | 44 |
this.columns = -1; |
Also available in: Unified diff