Examples of NSData


Examples of org.jclouds.dynect.v3.domain.rdata.NSData

      checkNotNull(rdata.getExchange(), "rdata.exchange cannot be null for MXRecord: %s", record);
      return record;
   }

   private Record<NSData> checkNSRecord(Record<NSData> record) {
      NSData rdata = record.getRData();
      checkNotNull(rdata.getNsdname(), "rdata.nsdname cannot be null for NSRecord: %s", record);
      return record;
   }
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSData

public class NSDataTest extends RococoaTestCase {

    @Test public void testInitWithBytes() throws Exception {
       byte[] bytes = "Hello".getBytes();
      
       NSData data = NSData.CLASS.dataWithBytes_length(bytes, bytes.length);
       assertEquals(bytes.length, data.length());

       byte[] resultBytes = new byte[bytes.length];
       data.getBytes(resultBytes);
       assertEquals("Hello", new String(resultBytes));
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.