MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getByName

Method getByName

classpath/java/net/InetAddress.java:36–45  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

34 }
35
36 public static InetAddress getByName(String name) throws UnknownHostException {
37 try {
38 Socket.init();
39 return new InetAddress(name);
40 } catch (IOException e) {
41 UnknownHostException uhe = new UnknownHostException(name);
42 uhe.initCause(e);
43 throw uhe;
44 }
45 }
46
47 public byte[] getAddress() {
48 byte[] res = new byte[4];

Callers 3

SocketMethod · 0.95
InetSocketAddressMethod · 0.95
mainMethod · 0.80

Calls 2

initMethod · 0.95
initCauseMethod · 0.80

Tested by 1

mainMethod · 0.64