Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.voytechs.jnetstream.primitive.address
Class MacAddress  view MacAddress download MacAddress.java

java.lang.Object
  extended bycom.voytechs.jnetstream.primitive.address.Address
      extended bycom.voytechs.jnetstream.primitive.address.MacAddress

public class MacAddress
extends Address

A Class for storing MAC Addresses


Field Summary
 
Fields inherited from class com.voytechs.jnetstream.primitive.address.Address
address, debug, DEFAULT_NUMBER_BASE, format, separator
 
Constructor Summary
MacAddress(byte[] address)
          Main constructor taking the array of bytes as the address.
 
Method Summary
static void main(java.lang.String[] args)
          Test function for MacAddress
 java.lang.String toString()
          Convert to dot notation string representation of 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MacAddress

public MacAddress(byte[] address)
Main constructor taking the array of bytes as the address. Automatically sets the separator token to ':'

Method Detail

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