Class CsvParser.CsvBuffer

java.lang.Object
de.siegmar.fastcsv.reader.CsvParser.CsvBuffer
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
CsvParser

private static class CsvParser.CsvBuffer extends Object implements Closeable
  • Field Details

    • READ_SIZE

      private static final int READ_SIZE
      See Also:
    • BUFFER_SIZE

      private static final int BUFFER_SIZE
      See Also:
    • buf

      char[] buf
    • len

      int len
    • begin

      int begin
    • pos

      int pos
    • reader

      private final Reader reader
  • Constructor Details

    • CsvBuffer

      CsvBuffer(Reader reader)
    • CsvBuffer

      CsvBuffer(String data)
  • Method Details

    • fetchData

      private boolean fetchData() throws IOException
      Reads data from the underlying reader and manages the local buffer.
      Returns:
      true, if data was fetched, false if the end of the stream was reached
      Throws:
      IOException - if a read error occurs
    • extendAndRelocate

      private static char[] extendAndRelocate(char[] buf, int begin)
    • reset

      private void reset()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException