Package org.harctoolbox.harchardware
Class Utils
java.lang.Object
org.harctoolbox.harchardware.Utils
This class contains a few static support function.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
findApplicationHome
(String appHome, Class<?> mainClass, String appName) static String
static String
getMacAddress
(InetAddress address) Returns the MAC address for the argument IP.static File
libraryDir
(String applicationHome) static byte[]
readBytes
(InputStream inStream, int length)
-
Field Details
-
DEFAULT
- See Also:
-
-
Method Details
-
getHostname
-
getMacAddress
Returns the MAC address for the argument IP.- Parameters:
address
- IP address.- Returns:
- MAC address as string.
-
readBytes
public static byte[] readBytes(InputStream inStream, int length) throws TimeoutException, IOException - Throws:
TimeoutException
IOException
-
libraryDir
-
findApplicationHome
-