new Config("mful_formatted.txt", MemoryLayout.ULTRALIGHT, true, true, null),
new Config("mfulc_formatted.txt", MemoryLayout.ULTRALIGHT_C, true, true, null) };
private void init(Config config) {
try {
tag = new InMemoryTag(FileMfUlReader.loadCardFromFile(config.fileName));
readerWriter = new AcrMfUlReaderWriter(tag);
ndefOperations = new Type2NdefOperations(config.memoryLayout, readerWriter, readerWriter.getTagInfo(),
config.formatted, config.writeable);
if (config.expectedFileName != null)
expectedTag = new InMemoryTag(FileMfUlReader.loadCardFromFile(config.expectedFileName));
}
catch (IOException e) {
throw new RuntimeException(e);
}
}