Package com.google.zxing.client.result
Class VINResultParser
java.lang.Object
com.google.zxing.client.result.ResultParser
com.google.zxing.client.result.VINResultParser
Detects a result that is likely a vehicle identification number.
-
Field Summary
FieldsFields inherited from class com.google.zxing.client.result.ResultParser
EMPTY_STR_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static char
checkChar
(int remainder) private static boolean
private static String
countryCode
(CharSequence wmi) private static int
modelYear
(char c) Attempts to parse the rawResult
's contents as a particular type of information (email, URL, etc.) and return aParsedResult
encapsulating the result of parsing.private static int
vinCharValue
(char c) private static int
vinPositionWeight
(int position) Methods inherited from class com.google.zxing.client.result.ResultParser
getMassagedText, isStringOfDigits, isSubstringOfDigits, matchPrefixedField, matchSinglePrefixedField, maybeAppend, maybeAppend, maybeWrap, parseHexDigit, parseNameValuePairs, parseResult, unescapeBackslash, urlDecode
-
Field Details
-
IOQ
-
AZ09
-
-
Constructor Details
-
VINResultParser
public VINResultParser()
-
-
Method Details
-
parse
Description copied from class:ResultParser
Attempts to parse the rawResult
's contents as a particular type of information (email, URL, etc.) and return aParsedResult
encapsulating the result of parsing.- Specified by:
parse
in classResultParser
- Parameters:
result
- the rawResult
to parse- Returns:
ParsedResult
encapsulating the parsing result
-
checkChecksum
-
vinCharValue
private static int vinCharValue(char c) -
vinPositionWeight
private static int vinPositionWeight(int position) -
checkChar
private static char checkChar(int remainder) -
modelYear
private static int modelYear(char c) -
countryCode
-