urv.olsr.mcast
Class MulticastAddress

java.lang.Object
  extended by urv.olsr.mcast.MulticastAddress
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, org.jgroups.util.Streamable

public class MulticastAddress
extends java.lang.Object
implements java.io.Serializable, org.jgroups.util.Streamable, java.io.Externalizable

Class that represents a multicast address of a group

Author:
Gerard Paris Aixala
See Also:
Serialized Form

Constructor Summary
MulticastAddress()
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 java.net.InetAddress getMcastAddress()
           
 int hashCode()
           
 void readExternal(java.io.ObjectInput in)
           
 void readFrom(java.io.DataInputStream in)
           
 void setValue(org.jgroups.Address multicastAddress)
           
 void setValue(java.net.InetAddress multicastAddress)
           
 void setValue(java.lang.String multicastAddress)
           
 java.net.InetAddress toInetAddress()
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 void writeTo(java.io.DataOutputStream out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MulticastAddress

public MulticastAddress()
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

readFrom

public void readFrom(java.io.DataInputStream in)
              throws java.io.IOException,
                     java.lang.IllegalAccessException,
                     java.lang.InstantiationException
Specified by:
readFrom in interface org.jgroups.util.Streamable
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException

toInetAddress

public java.net.InetAddress toInetAddress()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

writeTo

public void writeTo(java.io.DataOutputStream out)
             throws java.io.IOException
Specified by:
writeTo in interface org.jgroups.util.Streamable
Throws:
java.io.IOException

setValue

public void setValue(org.jgroups.Address multicastAddress)

getMcastAddress

public java.net.InetAddress getMcastAddress()

setValue

public void setValue(java.net.InetAddress multicastAddress)

setValue

public void setValue(java.lang.String multicastAddress)