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 TypeMethodDescriptionvoid
close()
private static char[]
extendAndRelocate
(char[] buf, int begin) private boolean
Reads data from the underlying reader and manages the local buffer.private void
reset()
-
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,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
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-