Class AddressBookDoCoMoResultParser
java.lang.Object
com.google.zxing.client.result.ResultParser
com.google.zxing.client.result.AbstractDoCoMoResultParser
com.google.zxing.client.result.AddressBookDoCoMoResultParser
Implements the "MECARD" address book entry format.
Supported keys: N, SOUND, TEL, EMAIL, NOTE, ADR, BDAY, URL, plus ORG
Unsupported keys: TEL-AV, NICKNAME
Except for TEL, multiple values for keys are also not supported;
the first one found takes precedence.
Our understanding of the MECARD format is based on this document:
http://www.mobicode.org.tw/files/OMIA%20Mobile%20Bar%20Code%20Standard%20v3.2.1.doc
-
Field Summary
Fields inherited from class ResultParser
EMPTY_STR_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttempts to parse the rawResult's contents as a particular type of information (email, URL, etc.) and return aParsedResultencapsulating the result of parsing.private static StringMethods inherited from class AbstractDoCoMoResultParser
matchDoCoMoPrefixedField, matchSingleDoCoMoPrefixedFieldMethods inherited from class ResultParser
getMassagedText, isStringOfDigits, isSubstringOfDigits, matchPrefixedField, matchSinglePrefixedField, maybeAppend, maybeAppend, maybeWrap, parseHexDigit, parseNameValuePairs, parseResult, unescapeBackslash, urlDecode
-
Constructor Details
-
AddressBookDoCoMoResultParser
public AddressBookDoCoMoResultParser()
-
-
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
-
parseName
-