- java.lang.Object
-
- de.siegmar.fastcsv.reader.CsvScanner
-
final class CsvScanner extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CsvScanner.CsvListener
-
Field Summary
Fields Modifier and Type Field Description private byte
commentCharacter
private CsvScanner.CsvListener
csvListener
private byte
fieldSeparator
private byte
quoteCharacter
private boolean
readComments
private ByteChannelStream
stream
-
Constructor Summary
Constructors Constructor Description CsvScanner(java.nio.channels.ReadableByteChannel channel, int bomHeaderLength, byte fieldSeparator, byte quoteCharacter, CommentStrategy commentStrategy, byte commentCharacter, CsvScanner.CsvListener csvListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
consumeCommentedLine()
private boolean
consumeQuotedField()
private void
consumeRecord(int d)
private boolean
consumeUnquotedField(int d)
(package private) void
scan()
-
-
-
Field Detail
-
fieldSeparator
private final byte fieldSeparator
-
quoteCharacter
private final byte quoteCharacter
-
commentCharacter
private final byte commentCharacter
-
csvListener
private final CsvScanner.CsvListener csvListener
-
stream
private final ByteChannelStream stream
-
readComments
private final boolean readComments
-
-
Constructor Detail
-
CsvScanner
CsvScanner(java.nio.channels.ReadableByteChannel channel, int bomHeaderLength, byte fieldSeparator, byte quoteCharacter, CommentStrategy commentStrategy, byte commentCharacter, CsvScanner.CsvListener csvListener) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
scan
void scan() throws java.io.IOException
- Throws:
java.io.IOException
-
consumeRecord
private void consumeRecord(int d) throws java.io.IOException
- Throws:
java.io.IOException
-
consumeQuotedField
private boolean consumeQuotedField() throws java.io.IOException
- Throws:
java.io.IOException
-
consumeUnquotedField
private boolean consumeUnquotedField(int d) throws java.io.IOException
- Throws:
java.io.IOException
-
consumeCommentedLine
private void consumeCommentedLine() throws java.io.IOException
- Throws:
java.io.IOException
-
-