@Test public void testWriteNdefMessagesTooLong() throws Exception { for (Config config : WRITE_TEST) { try { init(config); ndefOperations.writeNdefMessage(new UriRecord("http: + "someparameter=test&someparameter=test&someparameter=test&someparameter=test&" + "someparameter=test&someparameter=test&someparameter=test&someparameter=test&" + "someparameter=test&someparameter=test&someparameter=test&someparameter=test&" + "someparameter=test&someparameter=test&someparameter=test&someparameter=test&" + "someparameter=test&someparameter=test&someparameter=test&someparameter=test")); fail("Exception expected with " + config); } catch (NotEnoughMemoryException e) { } } }
@Override public void writeNdefMessage(Record... records) { lastReadRecords = null; assertWritable(); assertFormatted(); byte[] bytes = convertNdefMessage(records); writeBufferOnTag(bytes); }
Type2NdefOperations extends AbstractNdefOperations { @Override public void writeNdefMessage(Record... records) { lastReadRecords = null; assertWritable(); assertFormatted(); byte[] bytes = convertNdefMessage(records); writeBufferOnTag(bytes); } }
Type2NdefOperations extends AbstractNdefOperations { @Override public void writeNdefMessage(Record... records) { lastReadRecords = null; assertWritable(); assertFormatted(); byte[] bytes = convertNdefMessage(records); writeBufferOnTag(bytes); } Type2NdefOperations(MemoryLayout memoryLayout, MfUlReaderWriter readerWriter, TagInfo tagInfo,
			boolean formatted, boolean writable); }
Type2NdefOperations extends AbstractNdefOperations { @Override public void writeNdefMessage(Record... records) { lastReadRecords = null; assertWritable(); assertFormatted(); byte[] bytes = convertNdefMessage(records); writeBufferOnTag(bytes); } Type2NdefOperations(MemoryLayout memoryLayout, MfUlReaderWriter readerWriter, TagInfo tagInfo,
			boolean formatted, boolean writable); MemoryLayout getMemoryLayout(); @Override int getMaxSize(); @Override List<Record> readNdefMessage(); @Override void writeNdefMessage(Record... records); @Override void makeReadOnly(); @Override void format(Record... records); }
Type2NdefOperations extends AbstractNdefOperations { @Override public void writeNdefMessage(Record... records) { lastReadRecords = null; assertWritable(); assertFormatted(); byte[] bytes = convertNdefMessage(records); writeBufferOnTag(bytes); } Type2NdefOperations(MemoryLayout memoryLayout, MfUlReaderWriter readerWriter, TagInfo tagInfo,
			boolean formatted, boolean writable); MemoryLayout getMemoryLayout(); @Override int getMaxSize(); @Override List<Record> readNdefMessage(); @Override void writeNdefMessage(Record... records); @Override void makeReadOnly(); @Override void format(Record... records);  }