@Test public void testValueOfByteArrayOffsetIPv6() { Ip6Address ipAddress; byte[] value; value = new byte[] {11, 22, 33, 0x11, 0x11, 0x22, 0x22, 0x33, 0x33, 0x44, 0x44, 0x55, 0x55, 0x66, 0x66, 0x77, 0x77, (byte) 0x88, (byte) 0x88, 44, 55}; ipAddress = Ip6Address.valueOf(value, 3); assertThat(ipAddress.toString(), is("1111:2222:3333:4444:5555:6666:7777:8888")); value = new byte[] {11, 22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 33}; ipAddress = Ip6Address.valueOf(value, 2); assertThat(ipAddress.toString(), is("::")); value = new byte[] {11, 22, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, 33}; ipAddress = Ip6Address.valueOf(value, 2); assertThat(ipAddress.toString(), is("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff")); }
public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); }
Ip6Address extends IpAddress { public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); } }
Ip6Address extends IpAddress { public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); } private  Ip6Address(byte[] value); }
Ip6Address extends IpAddress { public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); } private  Ip6Address(byte[] value); static Ip6Address valueOf(byte[] value); static Ip6Address valueOf(byte[] value, int offset); static Ip6Address valueOf(InetAddress inetAddress); static Ip6Address valueOf(String value); static Ip6Address makeMaskPrefix(int prefixLength); static Ip6Address makeMaskedAddress(final Ip6Address address,
                                               int prefixLength); }
Ip6Address extends IpAddress { public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); } private  Ip6Address(byte[] value); static Ip6Address valueOf(byte[] value); static Ip6Address valueOf(byte[] value, int offset); static Ip6Address valueOf(InetAddress inetAddress); static Ip6Address valueOf(String value); static Ip6Address makeMaskPrefix(int prefixLength); static Ip6Address makeMaskedAddress(final Ip6Address address,
                                               int prefixLength); static final IpAddress.Version VERSION; static final int BYTE_LENGTH; static final int BIT_LENGTH; }