Class CsvParser.CsvBuffer
java.lang.Object
de.siegmar.fastcsv.reader.CsvParser.CsvBuffer
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
CsvParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private static char[]extendAndRelocate(char[] buf, int begin) private booleanReads data from the underlying reader and manages the local buffer.private voidreset()
-
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
-
-
Constructor Details
-
Method Details
-
fetchData
Reads data from the underlying reader and manages the local buffer.- Returns:
true, if data was fetched,falseif 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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-