Class StreamReader<T>

java.lang.Object
com.alibaba.fastjson2.stream.StreamReader<T>
Direct Known Subclasses:
CSVReader, JSONStreamReader

public abstract class StreamReader<T> extends Object
  • Field Details

    • SIZE_512K

      protected static final int SIZE_512K
      See Also:
    • 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
    • columns

      protected List<String> columns
    • columnStats

      protected List<StreamReader.ColumnStat> columnStats
    • mapping

      protected int[] mapping
  • Constructor Details

    • StreamReader

      public StreamReader()
    • StreamReader

      public StreamReader(Type[] types)
  • Method Details

    • seekLine

      protected abstract boolean seekLine() throws IOException
      Throws:
      IOException
    • readLineObject

      public abstract <T> T readLineObject()
    • stream

      public <T> Stream<T> stream()
    • stream

      public <T> Stream<T> stream(Class<T> clazz)