public abstract class ParsedResult extends 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(com.google.zxing.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.
| Modifier | Constructor and Description | 
|---|---|
| protected  | ParsedResult(ParsedResultType type) | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract String | getDisplayResult() | 
| ParsedResultType | getType() | 
| static void | maybeAppend(String[] values,
           StringBuilder result) | 
| static void | maybeAppend(String value,
           StringBuilder result) | 
| String | toString() | 
protected ParsedResult(ParsedResultType type)
public final ParsedResultType getType()
public abstract String getDisplayResult()
public static void maybeAppend(String value, StringBuilder result)
public static void maybeAppend(String[] values, StringBuilder result)
Copyright © 2007–2024. All rights reserved.