@Test public void testTwoEmptyRecords() throws Exception { byte[] data = NfcUtils.convertASCIIToBin(twoEmptyRecords); NdefMessage ndefMessage = decoder.decode(data); assertTrue(ndefMessage.getNdefRecords().length == 2); }
public NdefMessage decode(byte[] ndefMessage) { return decode(ndefMessage, 0, ndefMessage.length); }
NdefMessageDecoder { public NdefMessage decode(byte[] ndefMessage) { return decode(ndefMessage, 0, ndefMessage.length); } }
NdefMessageDecoder { public NdefMessage decode(byte[] ndefMessage) { return decode(ndefMessage, 0, ndefMessage.length); } NdefMessageDecoder(NdefRecordDecoder ndefRecordDecoder); }
NdefMessageDecoder { public NdefMessage decode(byte[] ndefMessage) { return decode(ndefMessage, 0, ndefMessage.length); } NdefMessageDecoder(NdefRecordDecoder ndefRecordDecoder); List<Record> decodeToRecords(byte[] payload); List<Record> decodeToRecords(InputStream in); List<Record> decodeToRecords(NdefMessage ndefMessage); T decodeToRecord(byte[] ndefMessage); @SuppressWarnings("unchecked") T decodeToRecord(byte[] ndefMessage, int offset, int length); NdefMessage decode(byte[] ndefMessage); NdefMessage decode(byte[] ndefMessage, int offset, int length); NdefMessage decode(InputStream bais); List<Record> decodeToRecords(byte[] payload, int offset, int length); }
NdefMessageDecoder { public NdefMessage decode(byte[] ndefMessage) { return decode(ndefMessage, 0, ndefMessage.length); } NdefMessageDecoder(NdefRecordDecoder ndefRecordDecoder); List<Record> decodeToRecords(byte[] payload); List<Record> decodeToRecords(InputStream in); List<Record> decodeToRecords(NdefMessage ndefMessage); T decodeToRecord(byte[] ndefMessage); @SuppressWarnings("unchecked") T decodeToRecord(byte[] ndefMessage, int offset, int length); NdefMessage decode(byte[] ndefMessage); NdefMessage decode(byte[] ndefMessage, int offset, int length); NdefMessage decode(InputStream bais); List<Record> decodeToRecords(byte[] payload, int offset, int length);  }