public static WifiParsedResult parse(Result result) { String rawText = result.getText(); if (rawText == null || !rawText.startsWith("WIFI:")) { return null; } // Don't remove leading or trailing whitespace boolean trim = false; String ssid = matchSinglePrefixedField("S:", rawText, ';', trim); String pass = matchSinglePrefixedField("P:", rawText, ';', trim); String type = matchSinglePrefixedField("T:", rawText, ';', trim); return new WifiParsedResult(type, ssid, pass); } }
} else if ((result = GeoResultParser.parse(theResult)) != null) { return result; } else if ((result = WifiResultParser.parse(theResult)) != null) { return result; } else if ((result = URLTOResultParser.parse(theResult)) != null) {