public abstract class JSONStreamReader<T> extends StreamReader<T>
StreamReader.ColumnStat, StreamReader.Feature, StreamReader.StreamReaderSpliterator<T>| Modifier and Type | Field and Description |
|---|---|
protected ObjectReaderAdapter |
objectReader |
columns, columnStats, columnStatsMap, end, errorCount, features, fieldReaders, inputEnd, lineEnd, lineNextStart, lineSize, lineStart, lineTerminated, mapping, objectCreator, off, rowCount, SIZE_512K, typeReaders, types| Constructor and Description |
|---|
JSONStreamReader(ObjectReaderAdapter objectReader) |
JSONStreamReader(java.lang.reflect.Type[] types) |
| Modifier and Type | Method and Description |
|---|---|
StreamReader.ColumnStat |
getColumnStat(java.lang.String name) |
static JSONStreamReader |
of(java.io.File file) |
static JSONStreamReader |
of(java.io.InputStream in) |
static JSONStreamReader |
of(java.io.InputStream in,
java.nio.charset.Charset charset,
java.lang.Class objectClass) |
static JSONStreamReader |
of(java.io.InputStream in,
java.nio.charset.Charset charset,
java.lang.reflect.Type... types) |
static JSONStreamReader |
of(java.io.InputStream in,
java.lang.Class objectClass) |
static JSONStreamReader |
of(java.io.InputStream in,
java.lang.reflect.Type... types) |
protected static void |
stat(StreamReader.ColumnStat stat,
java.lang.Object value) |
void |
statAll() |
private void |
statArray(java.lang.String parentKey,
java.util.List list,
int level) |
void |
statLine(java.lang.Object object) |
private void |
statMap(java.lang.String parentKey,
java.util.Map map,
int level) |
readLineObject, seekLine, stream, streamprotected ObjectReaderAdapter objectReader
public JSONStreamReader(java.lang.reflect.Type[] types)
public JSONStreamReader(ObjectReaderAdapter objectReader)
public static JSONStreamReader of(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic static JSONStreamReader of(java.io.InputStream in) throws java.io.IOException
java.io.IOExceptionpublic static JSONStreamReader of(java.io.InputStream in, java.lang.reflect.Type... types) throws java.io.IOException
java.io.IOExceptionpublic static JSONStreamReader of(java.io.InputStream in, java.nio.charset.Charset charset, java.lang.reflect.Type... types)
public static JSONStreamReader of(java.io.InputStream in, java.lang.Class objectClass)
public static JSONStreamReader of(java.io.InputStream in, java.nio.charset.Charset charset, java.lang.Class objectClass)
public StreamReader.ColumnStat getColumnStat(java.lang.String name)
protected static void stat(StreamReader.ColumnStat stat, java.lang.Object value)
public void statAll()
public void statLine(java.lang.Object object)
private void statArray(java.lang.String parentKey,
java.util.List list,
int level)
private void statMap(java.lang.String parentKey,
java.util.Map map,
int level)