private List<String> parseTitles(State state, String line) {
        // Match using the parser
        List<String> titles = new ArrayList<>();
        state.mLineTokens.reset(line);
        while (state.mLineTokens.find()) {
            String value;
            if (state.mLineTokens.start(2) >= 0) {
                value = state.mLineTokens.group(2);
            } else {
                // If quoted, always use string
                value = state.mQuote.reset(state.mLineTokens.group(1)).replaceAll("\"");
            }
            titles.add(value);
        }
        return titles;
    }
private List < String > parseTitles ( State state , String line ) { List < String > titles = new ArrayList < > ( ) ; state . mLineTokens . reset ( line ) ; while ( state . mLineTokens . find ( ) ) { String value ; if ( state . mLineTokens . start ( 2 ) >= 0 ) { value = state . mLineTokens . group ( 2 ) ; } else { value = state . mQuote . reset ( state . mLineTokens . group ( 1 ) ) . replaceAll ( "\"" ) ; } titles . add ( value ) ; } return titles ; }
Parses the first line to get the column names.

@param line the text line
@return the column names