peer2me.service
Class Service

java.lang.Object
  extended by peer2me.service.Service

public class Service
extends java.lang.Object

A class to store the ServiceID in. Stored both in ASCII and HEX format.

Author:
Tommy Bjoernsgaard

Constructor Summary
Service(java.lang.String serviceID)
          Creates a new ServiceID and a PingServiceID.
 
Method Summary
 java.lang.String getAsciiPingServiceID()
          Gets the asciiServiceID in ASCII
 java.lang.String getASCIIServiceID()
          Gets the serviceID in ASCII
 java.lang.String getHexPingServiceID()
          Gets the pingServiceID in HEX
 java.lang.String getHexServiceID()
          Gets the serviceID in HEX
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service(java.lang.String serviceID)
Creates a new ServiceID and a PingServiceID. Uses HexBuilder.getHexString(String) to convert the serviceID in ASCII-format to HEX-format. If this fails, default serviceIDs is sat.

Parameters:
serviceID - the serviceID in ASCII
Method Detail

getASCIIServiceID

public java.lang.String getASCIIServiceID()
Gets the serviceID in ASCII

Returns:
the string containing the serviceID

getHexServiceID

public java.lang.String getHexServiceID()
Gets the serviceID in HEX

Returns:
the string containing the hexServiceID

getHexPingServiceID

public java.lang.String getHexPingServiceID()
Gets the pingServiceID in HEX

Returns:
the string containing the hexPingServiceID

getAsciiPingServiceID

public java.lang.String getAsciiPingServiceID()
Gets the asciiServiceID in ASCII

Returns:
the string containing the asciiPingServiceID