From c4014b6b38c9f661a12557db7ee464e158f386f7 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Sat, 23 Mar 2013 12:48:24 +0000 Subject: [PATCH] Method names should start with a verb git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1460136 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVLexer.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVLexer.java b/src/main/java/org/apache/commons/csv/CSVLexer.java index ca8067b3..1876ed39 100644 --- a/src/main/java/org/apache/commons/csv/CSVLexer.java +++ b/src/main/java/org/apache/commons/csv/CSVLexer.java @@ -112,7 +112,7 @@ final class CSVLexer extends Lexer { token.type = EORECORD; } else if (isQuoteChar(c)) { // consume encapsulated token - encapsulatedTokenLexer(token); + parseEncapsulatedToken(token); } else if (isEndOfFile(c)) { // end of file return EOF() // noop: tkn.content.append(""); @@ -121,14 +121,14 @@ final class CSVLexer extends Lexer { } else { // next token must be a simple token // add removed blanks when not ignoring whitespace chars... - simpleTokenLexer(token, c); + parseSimpleToken(token, c); } } return token; } /** - * A simple token lexer + * Parsed a simple token. *

* Simple token are tokens which are not surrounded by encapsulators. A simple token might contain escaped * delimiters (as \, or \;). The token is finished when one of the following conditions become true: @@ -146,7 +146,7 @@ final class CSVLexer extends Lexer { * @throws IOException * on stream access error */ - private Token simpleTokenLexer(final Token tkn, int c) throws IOException { + private Token parseSimpleToken(final Token tkn, int c) throws IOException { // Faster to use while(true)+break than while(tkn.type == INVALID) while (true) { if (readEndOfLine(c)) { @@ -176,7 +176,7 @@ final class CSVLexer extends Lexer { } /** - * An encapsulated token lexer + * Parses an encapsulated token. *

* Encapsulated tokens are surrounded by the given encapsulating-string. The encapsulator itself might be included * in the token using a doubling syntax (as "", '') or using escaping (as in \", \'). Whitespaces before and after @@ -195,7 +195,7 @@ final class CSVLexer extends Lexer { * @throws IOException * on invalid state: EOF before closing encapsulator or invalid character before delimiter or EOL */ - private Token encapsulatedTokenLexer(final Token tkn) throws IOException { + private Token parseEncapsulatedToken(final Token tkn) throws IOException { // save current line number in case needed for IOE final long startLineNumber = getLineNumber(); int c;