Package org.nfctools.mf.ul

Examples of org.nfctools.mf.ul.DataBlock


  @Override
  public MfBlock[] readBlock(int startPage, int pagesToRead) throws IOException {
    MfBlock[] blocks = new MfBlock[pagesToRead];
    for (int x = 0; x < pagesToRead; x++) {
      blocks[x] = new DataBlock(memoryMap.getPage(startPage + x));
    }
    return blocks;
  }
View Full Code Here


      Command readBlock = new Command(Apdu.INS_READ_BINARY, 0x00, pageNumber, 4);
      Response readBlockResponse = tag.transmit(readBlock);
      if (!readBlockResponse.isSuccess()) {
        throw new MfException("Reading block failed. Page: " + pageNumber + ", Response: " + readBlockResponse);
      }
      returnBlocks[currentPage] = new DataBlock(readBlockResponse.getData());
    }
    return returnBlocks;
  }
View Full Code Here

TOP

Related Classes of org.nfctools.mf.ul.DataBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.