public class HostUtil extends Object
| 构造器和说明 |
|---|
HostUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static InetAddress |
getInetAddress() |
static String |
getIPAddress() |
static String |
getMac()
mac地址
|
static String |
getOsName() |
static int |
getPid() |
static String |
getUserName() |
static boolean |
is64Bit() |
static boolean |
isEmbedded()
Returns true if the platform is embedded.
|
static boolean |
isExistPort(int port)
端口是否已存在
|
static boolean |
isIOS() |
static boolean |
isLinux() |
static boolean |
isLocalhost(String host) |
static boolean |
isMacOSX() |
static boolean |
isWindows() |
public static boolean isExistPort(int port)
port - portpublic static boolean isLocalhost(String host)
public static int getPid()
public static String getUserName()
public static String getOsName()
public static boolean is64Bit()
public static boolean isWindows()
public static boolean isMacOSX()
public static boolean isLinux()
public static boolean isIOS()
public static String getIPAddress()
public static InetAddress getInetAddress()
public static boolean isEmbedded()
public static String getMac()
Copyright © 2021. All rights reserved.