"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/com/google/zxing/client/result/BookmarkDoCoMoResultParser.java" between
zxing-zxing-3.4.0.tar.gz and zxing-zxing-3.4.1.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.

BookmarkDoCoMoResultParser.java  (zxing-zxing-3.4.0):BookmarkDoCoMoResultParser.java  (zxing-zxing-3.4.1)
skipping to change at line 33 skipping to change at line 33
*/ */
public final class BookmarkDoCoMoResultParser extends AbstractDoCoMoResultParser { public final class BookmarkDoCoMoResultParser extends AbstractDoCoMoResultParser {
@Override @Override
public URIParsedResult parse(Result result) { public URIParsedResult parse(Result result) {
String rawText = result.getText(); String rawText = result.getText();
if (!rawText.startsWith("MEBKM:")) { if (!rawText.startsWith("MEBKM:")) {
return null; return null;
} }
String title = matchSingleDoCoMoPrefixedField("TITLE:", rawText, true); String title = matchSingleDoCoMoPrefixedField("TITLE:", rawText, true);
String[] rawUri = matchDoCoMoPrefixedField("URL:", rawText, true); String[] rawUri = matchDoCoMoPrefixedField("URL:", rawText);
if (rawUri == null) { if (rawUri == null) {
return null; return null;
} }
String uri = rawUri[0]; String uri = rawUri[0];
return URIResultParser.isBasicallyValidURI(uri) ? new URIParsedResult(uri, t itle) : null; return URIResultParser.isBasicallyValidURI(uri) ? new URIParsedResult(uri, t itle) : null;
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)