Class CsvScanner


  • final class CsvScanner
    extends java.lang.Object
    • Field Detail

      • fieldSeparator

        private final byte fieldSeparator
      • quoteCharacter

        private final byte quoteCharacter
      • commentCharacter

        private final byte commentCharacter
      • 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