new Config("mfstd4k_formatted.txt", MemoryLayout.CLASSIC_4K, true, true, "mfstd4k_formatted_readonly.txt") };
private void init(Config config) throws IOException {
MemoryMap memoryMap = FileMfClassicReader.loadCardFromFile(config.fileName);
tag = new InMemoryTag(memoryMap);
readerWriter = new AcrMfClassicReaderWriter(tag, config.memoryLayout);
ndefOperations = new MfClassicNdefOperations(readerWriter, readerWriter.getTagInfo(), config.formatted,
config.writeable);
if (config.expected != null && config.expected.startsWith("mfstd")) {
expectedTag = new InMemoryTag(FileMfClassicReader.loadCardFromFile(config.expected));
}