Examples of toWireCanonical()


Examples of org.xbill.DNS.Name.toWireCanonical()

  {
      byte[] raw = new byte[] { 1, 'a', 5, 'b', 'a', 's', 'i', 'c', 4, 'n', 'a', 'm', 'e', 0 };
      Name n = new Name("A.Basic.Name.");
     
      DNSOutput o = new DNSOutput();
      n.toWireCanonical(o);

      assertTrue(Arrays.equals(raw, o.toByteArray()));
  }

  public void test_0arg() throws TextParseException
View Full Code Here

Examples of org.xbill.DNS.Name.toWireCanonical()

  public void test_0arg() throws TextParseException
  {
      byte[] raw = new byte[] { 1, 'a', 5, 'b', 'a', 's', 'i', 'c', 4, 'n', 'a', 'm', 'e', 0 };
      Name n = new Name("A.Basic.Name.");
     
      byte[] out = n.toWireCanonical();

      assertTrue(Arrays.equals(raw, out));
  }

  public void test_root()
View Full Code Here

Examples of org.xbill.DNS.Name.toWireCanonical()

  }

  public void test_empty() throws TextParseException
  {
      Name n = new Name("@", null);
      byte[] out = n.toWireCanonical();
      assertTrue(Arrays.equals(new byte[0], out));
  }

  public void test_3arg() throws TextParseException
  {
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.