- java.lang.Object
-
- de.siegmar.fastcsv.reader.CsvParser.CsvBuffer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- CsvParser
private static class CsvParser.CsvBuffer extends java.lang.Object implements java.io.Closeable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private static char[]
extendAndRelocate(char[] buf, int begin)
private boolean
fetchData()
Reads data from the underlying reader and manages the local buffer.private void
reset()
-
-
-
Field Detail
-
READ_SIZE
private static final int READ_SIZE
- See Also:
- Constant Field Values
-
BUFFER_SIZE
private static final int BUFFER_SIZE
- See Also:
- Constant Field Values
-
buf
char[] buf
-
len
int len
-
begin
int begin
-
pos
int pos
-
reader
private final java.io.Reader reader
-
-
Method Detail
-
fetchData
private boolean fetchData() throws java.io.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:
java.io.IOException
- if a read error occurs
-
extendAndRelocate
private static char[] extendAndRelocate(char[] buf, int begin)
-
reset
private void reset()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-