@Test public void testEncodeExternalType() throws Exception { byte[] single = encoder.encodeSingle(new UnsupportedExternalTypeRecord("android.com:pkg", "de.grundid.test1234")); assertEquals("D40F13616E64726F69642E636F6D3A706B6764652E6772756E6469642E7465737431323334", NfcUtils.convertBinToASCII(single)); }
public byte[] encodeSingle(Record record) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); encodeSingle(record, baos); return baos.toByteArray(); }
NdefMessageEncoder { public byte[] encodeSingle(Record record) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); encodeSingle(record, baos); return baos.toByteArray(); } }
NdefMessageEncoder { public byte[] encodeSingle(Record record) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); encodeSingle(record, baos); return baos.toByteArray(); } NdefMessageEncoder(NdefRecordEncoder ndefRecordEncoder); }
NdefMessageEncoder { public byte[] encodeSingle(Record record) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); encodeSingle(record, baos); return baos.toByteArray(); } NdefMessageEncoder(NdefRecordEncoder ndefRecordEncoder); byte[] encodeSingle(Record record); void encodeSingle(Record record, ByteArrayOutputStream out); byte[] encode(Record... records); byte[] encode(Iterable<? extends Record> records); void encode(Iterable<? extends Record> records, ByteArrayOutputStream baos); }
NdefMessageEncoder { public byte[] encodeSingle(Record record) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); encodeSingle(record, baos); return baos.toByteArray(); } NdefMessageEncoder(NdefRecordEncoder ndefRecordEncoder); byte[] encodeSingle(Record record); void encodeSingle(Record record, ByteArrayOutputStream out); byte[] encode(Record... records); byte[] encode(Iterable<? extends Record> records); void encode(Iterable<? extends Record> records, ByteArrayOutputStream baos);  }