java.lang.Object
com.voytechs.jnetstream.primitive.address.Address
com.voytechs.jnetstream.primitive.address.MacAddress
- public class MacAddress
- extends Address
A Class for storing MAC Addresses
|
Constructor Summary |
MacAddress(byte[] address)
Main constructor taking the array of bytes as the address. |
| Methods inherited from class com.voytechs.jnetstream.primitive.address.Address |
AND, AND, byteArrayValue, compare, compare, compareTo, EOR, EOR, equals, getByte, getByte, getRadix, INVERT, INVERT, longToByteArray, OR, OR, parseByteArray, setAddress, setByteArrayAddress, setFormat, setFormat, setRadix, setSeparator, stringValue, toByteArray, toString, toString |
MacAddress
public MacAddress(byte[] address)
- Main constructor taking the array of bytes as the address.
Automatically sets the separator token to ':'
toString
public java.lang.String toString()
- Convert to dot notation string representation of the address. If hostname is
known then hostname.domain is returned other wise the appropriate numerical
representation of the numerical address is returned as a String.
- Overrides:
toString in class Address
main
public static void main(java.lang.String[] args)
- Test function for MacAddress