Package com.alibaba.fastjson2.stream
Class JSONStreamReader<T>
- java.lang.Object
-
- com.alibaba.fastjson2.stream.StreamReader<T>
-
- com.alibaba.fastjson2.stream.JSONStreamReader<T>
-
- Direct Known Subclasses:
JSONStreamReaderUTF16
public abstract class JSONStreamReader<T> extends StreamReader<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.alibaba.fastjson2.stream.StreamReader
StreamReader.ColumnStat, StreamReader.Feature, StreamReader.StreamReaderSpliterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectReaderAdapterobjectReader-
Fields inherited from class com.alibaba.fastjson2.stream.StreamReader
columns, columnStats, columnStatsMap, end, errorCount, features, fieldReaders, inputEnd, lineEnd, lineNextStart, lineSize, lineStart, lineTerminated, mapping, objectCreator, off, rowCount, SIZE_512K, typeReaders, types
-
-
Constructor Summary
Constructors Constructor Description JSONStreamReader(ObjectReaderAdapter objectReader)JSONStreamReader(Type[] types)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamReader.ColumnStatgetColumnStat(String name)static JSONStreamReaderof(File file)static JSONStreamReaderof(InputStream in)static JSONStreamReaderof(InputStream in, Class objectClass)static JSONStreamReaderof(InputStream in, Type... types)static JSONStreamReaderof(InputStream in, Charset charset, Class objectClass)static JSONStreamReaderof(InputStream in, Charset charset, Type... types)protected static voidstat(StreamReader.ColumnStat stat, Object value)voidstatAll()voidstatLine(Object object)-
Methods inherited from class com.alibaba.fastjson2.stream.StreamReader
readLineObject, seekLine, stream, stream
-
-
-
-
Field Detail
-
objectReader
protected ObjectReaderAdapter objectReader
-
-
Constructor Detail
-
JSONStreamReader
public JSONStreamReader(Type[] types)
-
JSONStreamReader
public JSONStreamReader(ObjectReaderAdapter objectReader)
-
-
Method Detail
-
of
public static JSONStreamReader of(File file) throws IOException
- Throws:
IOException
-
of
public static JSONStreamReader of(InputStream in) throws IOException
- Throws:
IOException
-
of
public static JSONStreamReader of(InputStream in, Type... types) throws IOException
- Throws:
IOException
-
of
public static JSONStreamReader of(InputStream in, Charset charset, Type... types)
-
of
public static JSONStreamReader of(InputStream in, Class objectClass)
-
of
public static JSONStreamReader of(InputStream in, Charset charset, Class objectClass)
-
getColumnStat
public StreamReader.ColumnStat getColumnStat(String name)
-
stat
protected static void stat(StreamReader.ColumnStat stat, Object value)
-
statAll
public void statAll()
-
statLine
public void statLine(Object object)
-
-