public NdefMessage(NdefRecord record,NdefRecord... records){
  if (record == null)   throw new NullPointerException("record cannot be null");
  for (  NdefRecord r : records) {
    if (r == null) {
      throw new NullPointerException("record cannot be null");
    }
  }
  mRecords=new NdefRecord[1 + records.length];
  mRecords[0]=record;
  System.arraycopy(records,0,mRecords,1,records.length);
}

public NdefMessage ( NdefRecord record , NdefRecord ... records ) { if ( record == null ) throw new NullPointerException ( "record cannot be null" ) ; for ( NdefRecord r : records ) { if ( r == null ) { throw new NullPointerException ( "record cannot be null" ) ; } } mRecords = new NdefRecord [ 1 + records . length ] ; mRecords [ 0 ] = record ; System . arraycopy ( records , 0 , mRecords , 1 , records . length ) ; }
construct an ndef message from one or more ndef records .
