public abstract class VersionParser
extends java.lang.Object
Version.create(String) or Version.parseVersion(String).
The class also contains some general purpose parser support methods| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
MAX_INT_OBJ |
| Modifier and Type | Method and Description |
|---|---|
static int |
findEndOfFormat(java.lang.String string,
int pos,
int maxPos) |
static boolean |
isLetter(char c) |
static Version |
parse(java.lang.String version,
int start,
int maxPos)
Parse the
version string and assing the parsed portions to the receiver. |
static int |
skipTrailingWhite(java.lang.String string,
int start,
int end) |
static int |
skipWhite(java.lang.String string,
int pos) |
static java.lang.Integer |
valueOf(int i) |
public static java.lang.Integer valueOf(int i)
public static Version parse(java.lang.String version, int start, int maxPos) throws java.lang.IllegalArgumentException
version string and assing the parsed portions to the receiver.
This method is called from the version string constructor.version - The string to be parsedstart - Start position in the version stringmaxPos - End position in the version stringjava.lang.IllegalArgumentException - if the version is malformedpublic static boolean isLetter(char c)
public static int findEndOfFormat(java.lang.String string,
int pos,
int maxPos)
public static int skipWhite(java.lang.String string,
int pos)
public static int skipTrailingWhite(java.lang.String string,
int start,
int end)