public class Utils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
invalid |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static String |
getHostname() |
static String |
getMacAddress(InetAddress address)
Returns the MAC address for the argument IP.
|
static void |
main(String[] args)
Just for testing.
|
static byte[] |
readBytes(InputStream inStream,
int length) |
public static final int invalid
public static String getHostname()
public static String getMacAddress(InetAddress address)
address
- IP address.public static byte[] readBytes(InputStream inStream, int length) throws TimeoutException, IOException
TimeoutException
IOException
public static void main(String[] args)
args
- the command line argumentsCopyright © 2016. All rights reserved.