com.google.zxing.client.result
Class ParsedResult
java.lang.Object
com.google.zxing.client.result.ParsedResult
- Direct Known Subclasses:
- AddressBookParsedResult, CalendarParsedResult, EmailAddressParsedResult, ExpandedProductParsedResult, GeoParsedResult, ISBNParsedResult, ProductParsedResult, SMSParsedResult, TelParsedResult, TextParsedResult, URIParsedResult, WifiParsedResult
public abstract class ParsedResult
- extends java.lang.Object
Abstract class representing the result of decoding a barcode, as more than
a String -- as some type of structured data. This might be a subclass which represents
a URL, or an e-mail address. ResultParser.parseResult(Result)
will turn a raw
decoded string into the most appropriate type of structured representation.
Thanks to Jeff Griffin for proposing rewrite of these classes that relies less
on exception-based mechanisms during parsing.
- Author:
- Sean Owen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ParsedResult
protected ParsedResult(ParsedResultType type)
getType
public ParsedResultType getType()
getDisplayResult
public abstract java.lang.String getDisplayResult()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
maybeAppend
public static void maybeAppend(java.lang.String value,
java.lang.StringBuilder result)
maybeAppend
public static void maybeAppend(java.lang.String[] value,
java.lang.StringBuilder result)