Java Code Examples for java.net.Inet6Address#getScopedInterface()
The following examples show how to use
java.net.Inet6Address#getScopedInterface() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Inet6AddressSerializationTest.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
static void displayExpectedInet6Address(Inet6Address expectedInet6Address) { String expectedHostName = expectedInet6Address.getHostName(); byte[] expectedAddress = expectedInet6Address.getAddress(); String expectedHostAddress = expectedInet6Address.getHostAddress(); int expectedScopeId = expectedInet6Address.getScopeId(); NetworkInterface expectedNetIf = expectedInet6Address .getScopedInterface(); System.err.println("Excpected HostName: " + expectedHostName); System.err.println("Expected Address: " + Arrays.toString(expectedAddress)); System.err.println("Expected HostAddress: " + expectedHostAddress); System.err.println("Expected Scope Id " + expectedScopeId); System.err.println("Expected NetworkInterface " + expectedNetIf); System.err.println("Expected Inet6Address " + expectedInet6Address); }
Example 2
Source File: Inet6AddressSerializationTest.java From hottub with GNU General Public License v2.0 | 6 votes |
static void displayExpectedInet6Address(Inet6Address expectedInet6Address) { String expectedHostName = expectedInet6Address.getHostName(); byte[] expectedAddress = expectedInet6Address.getAddress(); String expectedHostAddress = expectedInet6Address.getHostAddress(); int expectedScopeId = expectedInet6Address.getScopeId(); NetworkInterface expectedNetIf = expectedInet6Address .getScopedInterface(); System.err.println("Excpected HostName: " + expectedHostName); System.err.println("Expected Address: " + Arrays.toString(expectedAddress)); System.err.println("Expected HostAddress: " + expectedHostAddress); System.err.println("Expected Scope Id " + expectedScopeId); System.err.println("Expected NetworkInterface " + expectedNetIf); System.err.println("Expected Inet6Address " + expectedInet6Address); }
Example 3
Source File: Inet6AddressSerializationTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
static void displayExpectedInet6Address(Inet6Address expectedInet6Address) { String expectedHostName = expectedInet6Address.getHostName(); byte[] expectedAddress = expectedInet6Address.getAddress(); String expectedHostAddress = expectedInet6Address.getHostAddress(); int expectedScopeId = expectedInet6Address.getScopeId(); NetworkInterface expectedNetIf = expectedInet6Address .getScopedInterface(); System.err.println("Excpected HostName: " + expectedHostName); System.err.println("Expected Address: " + Arrays.toString(expectedAddress)); System.err.println("Expected HostAddress: " + expectedHostAddress); System.err.println("Expected Scope Id " + expectedScopeId); System.err.println("Expected NetworkInterface " + expectedNetIf); System.err.println("Expected Inet6Address " + expectedInet6Address); }
Example 4
Source File: Inet6AddressSerializationTest.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
static void displayExpectedInet6Address(Inet6Address expectedInet6Address) { String expectedHostName = expectedInet6Address.getHostName(); byte[] expectedAddress = expectedInet6Address.getAddress(); String expectedHostAddress = expectedInet6Address.getHostAddress(); int expectedScopeId = expectedInet6Address.getScopeId(); NetworkInterface expectedNetIf = expectedInet6Address .getScopedInterface(); System.err.println("Excpected HostName: " + expectedHostName); System.err.println("Expected Address: " + Arrays.toString(expectedAddress)); System.err.println("Expected HostAddress: " + expectedHostAddress); System.err.println("Expected Scope Id " + expectedScopeId); System.err.println("Expected NetworkInterface " + expectedNetIf); System.err.println("Expected Inet6Address " + expectedInet6Address); }
Example 5
Source File: Inet6AddressSerializationTest.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 6
Source File: Inet6AddressSerializationTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static String getIfName(Inet6Address inet6Addr) { String ifname; if (inet6Addr.getScopedInterface() != null) { ifname = "_ifname_" + inet6Addr.getScopedInterface().getName(); } else { ifname = "_ifname_" + Integer.valueOf(inet6Addr.getScopeId()).toString(); } return ifname; }
Example 7
Source File: Inet6AddressSerializationTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 8
Source File: IPv6Address.java From IPAddress with Apache License 2.0 | 5 votes |
private static CharSequence getZone(Inet6Address inet6Address) { NetworkInterface networkInterface = inet6Address.getScopedInterface(); String zone = null; if(networkInterface == null) { int scopeId = inet6Address.getScopeId(); if(scopeId != 0) { zone = Integer.toString(scopeId); } } else { zone = networkInterface.getName(); } return zone; }
Example 9
Source File: Inet6AddressSerializationTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static String getIfName(Inet6Address inet6Addr) { String ifname; if (inet6Addr.getScopedInterface() != null) { ifname = "_ifname_" + inet6Addr.getScopedInterface().getName(); } else { ifname = "_ifname_" + Integer.valueOf(inet6Addr.getScopeId()).toString(); } return ifname; }
Example 10
Source File: Inet6AddressSerializationTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 11
Source File: Inet6AddressSerializationTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private static String getIfName(Inet6Address inet6Addr) { String ifname; if (inet6Addr.getScopedInterface() != null) { ifname = "_ifname_" + inet6Addr.getScopedInterface().getName(); } else { ifname = "_ifname_" + Integer.valueOf(inet6Addr.getScopeId()).toString(); } return ifname; }
Example 12
Source File: Inet6AddressSerializationTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private static String getIfName(Inet6Address inet6Addr) { String ifname; if (inet6Addr.getScopedInterface() != null) { ifname = "_ifname_" + inet6Addr.getScopedInterface().getName(); } else { ifname = "_ifname_" + Integer.valueOf(inet6Addr.getScopeId()).toString(); } return ifname; }
Example 13
Source File: Inet6AddressSerializationTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 14
Source File: Inet6AddressSerializationTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 15
Source File: Inet6AddressSerializationTest.java From hottub with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 16
Source File: Inet6AddressSerializationTest.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static String getIfName(Inet6Address inet6Addr) { String ifname; if (inet6Addr.getScopedInterface() != null) { ifname = "_ifname_" + inet6Addr.getScopedInterface().getName(); } else { ifname = "_ifname_" + Integer.valueOf(inet6Addr.getScopeId()).toString(); } return ifname; }
Example 17
Source File: Inet6AddressSerializationTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 18
Source File: Inet6AddressSerializationTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 19
Source File: Inet6AddressSerializationTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private static String createOutputFileName(Inet6Address inet6Addr) { String inet6AddressOutputFilename; if (inet6Addr.getScopedInterface() != null) { inet6AddressOutputFilename = "IPV6Address_" + inet6Addr.getScopedInterface().getName() + ".out"; } else { inet6AddressOutputFilename = "IPV6Address_" + Integer.valueOf(inet6Addr.getScopeId()).toString() + ".out"; } return inet6AddressOutputFilename; }
Example 20
Source File: Inet6AddressSerializationTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private static String getIfName(Inet6Address inet6Addr) { String ifname; if (inet6Addr.getScopedInterface() != null) { ifname = "_ifname_" + inet6Addr.getScopedInterface().getName(); } else { ifname = "_ifname_" + Integer.valueOf(inet6Addr.getScopeId()).toString(); } return ifname; }