< prev index next > src/java.base/share/classes/jdk/internal/access/JavaNetInetAddressAccess.java
Print this page
* caching addresses and hostnames.
*/
InetAddress getByName(String hostName, InetAddress hostAddress)
throws UnknownHostException;
+ /**
+ * Returns a new Inet4Address with the given address.
+ */
+ Inet4Address getByAddress(int address);
+
+ /**
+ * Returns a new InetAddress with the given address and optional scope_id.
+ */
+ InetAddress getByAddress(byte[] addr, int scope_id);
+
/**
* Returns the 32-bit IPv4 address.
*/
int addressValue(Inet4Address inet4Address);
< prev index next >