Package com.alibaba.fastjson2.stream
Class StreamReader<T>
- java.lang.Object
-
- com.alibaba.fastjson2.stream.StreamReader<T>
-
- Direct Known Subclasses:
CSVReader,JSONStreamReader
public abstract class StreamReader<T> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamReader.ColumnStatstatic classStreamReader.Featureprotected static classStreamReader.StreamReaderSpliterator<T>
-
Field Summary
Fields Modifier and Type Field Description protected List<String>columnsprotected List<StreamReader.ColumnStat>columnStatsprotected Map<String,StreamReader.ColumnStat>columnStatsMapprotected intendprotected interrorCountprotected longfeaturesprotected FieldReader[]fieldReadersprotected booleaninputEndprotected intlineEndprotected intlineNextStartprotected intlineSizeprotected intlineStartprotected booleanlineTerminatedprotected int[]mappingprotected SupplierobjectCreatorprotected intoffprotected introwCountprotected static intSIZE_512Kprotected ObjectReader[]typeReadersprotected Type[]types
-
Constructor Summary
Constructors Constructor Description StreamReader()StreamReader(Type[] types)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T> TreadLineObject()protected abstract booleanseekLine()<T> Stream<T>stream()<T> Stream<T>stream(Class<T> clazz)
-
-
-
Field Detail
-
SIZE_512K
protected static final int SIZE_512K
- See Also:
- Constant Field Values
-
features
protected long features
-
types
protected Type[] types
-
typeReaders
protected ObjectReader[] typeReaders
-
objectCreator
protected Supplier objectCreator
-
fieldReaders
protected FieldReader[] fieldReaders
-
lineSize
protected int lineSize
-
rowCount
protected int rowCount
-
errorCount
protected int errorCount
-
lineStart
protected int lineStart
-
lineEnd
protected int lineEnd
-
lineNextStart
protected int lineNextStart
-
end
protected int end
-
off
protected int off
-
inputEnd
protected boolean inputEnd
-
lineTerminated
protected boolean lineTerminated
-
columnStatsMap
protected Map<String,StreamReader.ColumnStat> columnStatsMap
-
columnStats
protected List<StreamReader.ColumnStat> columnStats
-
mapping
protected int[] mapping
-
-
Constructor Detail
-
StreamReader
public StreamReader()
-
StreamReader
public StreamReader(Type[] types)
-
-
Method Detail
-
seekLine
protected abstract boolean seekLine() throws IOException- Throws:
IOException
-
readLineObject
public abstract <T> T readLineObject()
-
stream
public <T> Stream<T> stream()
-
-