Class MessageParser

java.lang.Object
  extended by MessageParser

public class MessageParser
extends java.lang.Object

Parses messages


Constructor Summary
MessageParser()
           
 
Method Summary
static java.lang.String getMsg(java.lang.String s)
          Gets the part of a string after the first '_' Use to get the message
static int getTag(java.lang.String s)
          Gets the tag of a message by splitting it by the '_' character
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageParser

public MessageParser()
Method Detail

getTag

public static int getTag(java.lang.String s)
Gets the tag of a message by splitting it by the '_' character

Parameters:
s - The tagID and the message
Returns:
The tagID

getMsg

public static java.lang.String getMsg(java.lang.String s)
Gets the part of a string after the first '_' Use to get the message

Parameters:
s - The message and the tagID
Returns:
The message without the tagID