ProductResultParser (ZXing 3.5.2 API)
Description: declaration: package: com.google.zxing.client.result, class: ProductResultParser

Package com.google.zxing.client.result

# Class ProductResultParser

java.lang.Object
com.google.zxing.client.result.ResultParser
com.google.zxing.client.result.ProductResultParser

public final class ProductResultParser extends ResultParser
Parses strings of digits that represent a UPC code.

Author:
  dswitkin@google.com (Daniel Switkin)

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ProductResultParser()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ProductParsedResult`
  `parse(Result result)`
  Attempts to parse the raw `Result`'s contents as a particular type of information (email, URL, etc.) and return a `ParsedResult` encapsulating the result of parsing.

  ### Methods inherited from class com.google.zxing.client.result.ResultParser

  `getMassagedText, isStringOfDigits, isSubstringOfDigits, maybeAppend, maybeAppend, maybeWrap, parseHexDigit, parseResult, unescapeBackslash`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ProductResultParser

    public ProductResultParser()

- ## Method Details

  - ### parse

    public ProductParsedResult parse(Result result)
    Description copied from class: `ResultParser`
    Attempts to parse the raw `Result`'s contents as a particular type of information (email, URL, etc.) and return a `ParsedResult` encapsulating the result of parsing.
    Specified by:
      `parse` in class `ResultParser`
    Parameters:
      `result` - the raw `Result` to parse
    Returns:
      `ParsedResult` encapsulating the parsing result