Sort methods

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1460348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2013-03-24 13:14:21 +00:00
parent b01898391d
commit 6b67a34b87
1 changed files with 9 additions and 9 deletions

View File

@ -105,13 +105,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...
*
@ -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;
}