- 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 interfaceCsvScanner.CsvListener
-
Field Summary
Fields Modifier and Type Field Description private bytecommentCharacterprivate CsvScanner.CsvListenercsvListenerprivate bytefieldSeparatorprivate bytequoteCharacterprivate booleanreadCommentsprivate ByteChannelStreamstream
-
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 voidconsumeCommentedLine()private booleanconsumeQuotedField()private voidconsumeRecord(int d)private booleanconsumeUnquotedField(int d)(package private) voidscan()
-
-
-
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
-
-