Class LineReader

java.lang.Object
java.io.Reader
com.univocity.parsers.common.LineReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

class LineReader extends Reader
A simple Reader implementation to enable parsers to process lines on demand, via AbstractParser.parseLine(String)
  • Field Details

    • line

      private String line
    • length

      private int length
    • next

      private int next
  • Constructor Details

    • LineReader

      public LineReader()
  • Method Details

    • setLine

      public void setLine(String line)
    • read

      public int read(char[] cbuf, int off, int len)
      Specified by:
      read in class Reader
    • skip

      public long skip(long ns)
      Overrides:
      skip in class Reader
    • ready

      public boolean ready()
      Overrides:
      ready in class Reader
    • markSupported

      public boolean markSupported()
      Overrides:
      markSupported in class Reader
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Reader