org.jcsp.net2.tcpip
Class TCPIPProtocolID

java.lang.Object
  extended by org.jcsp.net2.ProtocolID
      extended by org.jcsp.net2.tcpip.TCPIPProtocolID

public final class TCPIPProtocolID
extends ProtocolID

Concrete implementation of a ProtocolID used to parse a string representation of a TCPIPNodeAddress into a TCPIPNodeAddress object.

Author:
Kevin Chalmers

Method Summary
static TCPIPProtocolID getInstance()
          Gets the singleton instance of this class
protected  NodeAddress parse(String addressString)
          Parses a string to recreate a TCPIPNodeAddress object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TCPIPProtocolID getInstance()
Gets the singleton instance of this class

Returns:
A new singleton instance of this class

parse

protected NodeAddress parse(String addressString)
                     throws IllegalArgumentException
Parses a string to recreate a TCPIPNodeAddress object

Specified by:
parse in class ProtocolID
Parameters:
addressString - String representing the address
Returns:
A new TCPIPNodeAddress object
Throws:
IllegalArgumentException - Thrown if the address is not in a correct form


Copyright © 1996-2012. All Rights Reserved.