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 ResultParser
EMPTY_STR_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static charcheckChar(int remainder) private static booleanprivate static StringcountryCode(CharSequence wmi) private static intmodelYear(char c) Attempts to parse the rawResult's contents as a particular type of information (email, URL, etc.) and return aParsedResultencapsulating the result of parsing.private static intvinCharValue(char c) private static intvinPositionWeight(int position) Methods inherited from class 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:ResultParserAttempts to parse the rawResult's contents as a particular type of information (email, URL, etc.) and return aParsedResultencapsulating the result of parsing.- Specified by:
parsein classResultParser- Parameters:
result- the rawResultto parse- Returns:
ParsedResultencapsulating 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
-