private MfCardListener cardListener;
public MfCard loadCardFromFile(String fileName) throws IOException {
Collection<String> lines = readLinesFromFile(fileName);
MfCard mfCard = lines.size() == 256 ? new MfCard4k(null, null) : lines.size() == 64 ? new MfCard1k(null, null)
: null;
if (mfCard == null)
throw new MfException("unknown card. lines " + lines.size());
BlockResolver blockResolver = new BlockResolver();