MCPcopy Create free account
hub / github.com/ZsBT/mrz-java / parse

Method parse

src/main/java/com/innovatrics/mrz/MrzParser.java:263–267  ·  view source on GitHub ↗

Factory method, which parses the MRZ and returns appropriate record class. @param mrz MRZ to parse. @return record class.

(String mrz)

Source from the content-addressed store, hash-verified

261 * @return record class.
262 */
263 public static MrzRecord parse(String mrz) {
264 final MrzRecord result = MrzFormat.get(mrz).newRecord();
265 result.fromMrz(mrz);
266 return result;
267 }
268
269
270 private static final Map<String, String> EXPAND_CHARACTERS = new HashMap<String, String>();

Callers 9

testValidCheckDigitMethod · 0.95
testParsingMethod · 0.95
testTd1ParsingMethod · 0.95
testTd2ParsingMethod · 0.95
actionPerformedMethod · 0.95

Calls 3

getMethod · 0.95
fromMrzMethod · 0.95
newRecordMethod · 0.80

Tested by 8

testValidCheckDigitMethod · 0.76
testParsingMethod · 0.76
testTd1ParsingMethod · 0.76
testTd2ParsingMethod · 0.76