You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2013/03/24 14:14:22 UTC
svn commit: r1460348 -
/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
Author: britter
Date: Sun Mar 24 13:14:21 2013
New Revision: 1460348
URL: http://svn.apache.org/r1460348
Log:
Sort methods
Modified:
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java?rev=1460348&r1=1460347&r2=1460348&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java Sun Mar 24 13:14:21 2013
@@ -106,13 +106,6 @@ abstract class Lexer {
}
/**
- * @return true if the given char is a whitespace character
- */
- boolean isWhitespace(final int c) {
- return c != format.getDelimiter() && Character.isWhitespace((char) c);
- }
-
- /**
* Greedily accepts \n, \r and \r\n This checker consumes silently the second control-character...
*
* @return true if the given or next character is a line-terminator
@@ -126,6 +119,15 @@ abstract class Lexer {
return c == LF || c == CR;
}
+ abstract Token nextToken(Token reusableToken) throws IOException;
+
+ /**
+ * @return true if the given char is a whitespace character
+ */
+ boolean isWhitespace(final int c) {
+ return c != format.getDelimiter() && Character.isWhitespace((char) c);
+ }
+
/**
* Checks if the current character represents the start of a line: a CR, LF or is at the start of the file.
*
@@ -143,8 +145,6 @@ abstract class Lexer {
return c == END_OF_STREAM;
}
- abstract Token nextToken(Token reusableToken) throws IOException;
-
boolean isDelimiter(final int c) {
return c == delimiter;
}