C# Class zxingwp7.client.result.ResultParser

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. {@link #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.

Mostrar archivo Open project: henningms/zxing2.0-wp7

Public Methods

Method Description
parseResult ( System.Result theResult ) : ParsedResult

Protected Methods

Method Description
isStringOfDigits ( String value_Renamed, int length ) : bool
isSubstringOfDigits ( String value_Renamed, int offset, int length ) : bool
maybeAppend ( String value_Renamed, StringBuilder result ) : void
maybeWrap ( String value_Renamed ) : String[]
unescapeBackslash ( String escaped ) : String

Private Methods

Method Description
appendKeyValue ( String uri, int paramStart, int paramEnd, Object>.Dictionary result ) : void
findFirstEscape ( char escapedArray ) : int
matchPrefixedField ( String prefix, String rawText, char endChar, bool trim ) : String[]
matchSinglePrefixedField ( String prefix, String rawText, char endChar, bool trim ) : String
parseHexDigit ( char c ) : int
parseNameValuePairs ( String uri ) : Object>.Dictionary
toStringArray ( List strings ) : String[]
urlDecode ( String escaped ) : String

Method Details

isStringOfDigits() protected static method

protected static isStringOfDigits ( String value_Renamed, int length ) : bool
value_Renamed String
length int
return bool

isSubstringOfDigits() protected static method

protected static isSubstringOfDigits ( String value_Renamed, int offset, int length ) : bool
value_Renamed String
offset int
length int
return bool

maybeAppend() protected static method

protected static maybeAppend ( String value_Renamed, StringBuilder result ) : void
value_Renamed String
result StringBuilder
return void

maybeWrap() protected static method

protected static maybeWrap ( String value_Renamed ) : String[]
value_Renamed String
return String[]

parseResult() public static method

public static parseResult ( System.Result theResult ) : ParsedResult
theResult System.Result
return ParsedResult

unescapeBackslash() protected static method

protected static unescapeBackslash ( String escaped ) : String
escaped String
return String