public final class VINResultParser extends ResultParser
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
AZ09 |
private static java.util.regex.Pattern |
IOQ |
EMPTY_STR_ARRAY
Constructor and Description |
---|
VINResultParser() |
Modifier and Type | Method and Description |
---|---|
private static char |
checkChar(int remainder) |
private static boolean |
checkChecksum(java.lang.CharSequence vin) |
private static java.lang.String |
countryCode(java.lang.CharSequence wmi) |
private static int |
modelYear(char c) |
VINParsedResult |
parse(Result result)
Attempts to parse the raw
Result 's contents as a particular type
of information (email, URL, etc.) and return a ParsedResult encapsulating
the result of parsing. |
private static int |
vinCharValue(char c) |
private static int |
vinPositionWeight(int position) |
getMassagedText, isStringOfDigits, isSubstringOfDigits, matchPrefixedField, matchSinglePrefixedField, maybeAppend, maybeAppend, maybeWrap, parseHexDigit, parseNameValuePairs, parseResult, unescapeBackslash, urlDecode
private static final java.util.regex.Pattern IOQ
private static final java.util.regex.Pattern AZ09
public VINParsedResult parse(Result result)
ResultParser
Result
's contents as a particular type
of information (email, URL, etc.) and return a ParsedResult
encapsulating
the result of parsing.parse
in class ResultParser
result
- the raw Result
to parseParsedResult
encapsulating the parsing resultprivate static boolean checkChecksum(java.lang.CharSequence vin)
private static int vinCharValue(char c)
private static int vinPositionWeight(int position)
private static char checkChar(int remainder)
private static int modelYear(char c)
private static java.lang.String countryCode(java.lang.CharSequence wmi)