}
protected void readMad(byte[] madData, int sectorId, int firstBlockId, TrailerBlock trailerBlock)
throws IOException {
int blocksToRead = madData.length / MfConstants.BYTES_PER_BLOCK;
MfClassicAccess access = new MfClassicAccess(new KeyValue(Key.A, trailerBlock.getKey(Key.A)), sectorId,
firstBlockId, blocksToRead);
MfBlock[] madBlocks = readerWriter.readBlock(access);
for (int x = 0; x < blocksToRead; x++) {
System.arraycopy(madBlocks[x].getData(), 0, madData, x * MfConstants.BYTES_PER_BLOCK,
MfConstants.BYTES_PER_BLOCK);