commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1460136 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java
Date Sat, 23 Mar 2013 12:48:24 GMT
Author: britter
Date: Sat Mar 23 12:48:24 2013
New Revision: 1460136

URL: http://svn.apache.org/r1460136
Log:
Method names should start with a verb

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java?rev=1460136&r1=1460135&r2=1460136&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java Sat Mar 23
12:48:24 2013
@@ -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.
      * <p/>
      * 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.
      * <p/>
      * 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;



Mime
View raw message