com.breeweb.slimconnect.data
Class ReturnData

java.lang.Object
  extended bycom.breeweb.slimconnect.data.ReturnData
Direct Known Subclasses:
DisplayReturnData

public class ReturnData
extends java.lang.Object

Author:
Bas de Bree

Constructor Summary
ReturnData(java.lang.String command, java.lang.String returnLine, java.lang.String playerPrefix)
           
 
Method Summary
 java.lang.String decode(java.lang.String aString)
          Decodes the given string, This is used to remove any special characters written by the Squeezebox server and replace them with normal characters.
 java.lang.String getCommand()
          Returns the command as String
 java.lang.String getReturnLine()
          Returns the result as String
 java.lang.String getValue()
          returns the value for the ReturnData object as String
 void setReturnLine(java.lang.String line)
          Sets the result line.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReturnData

public ReturnData(java.lang.String command,
                  java.lang.String returnLine,
                  java.lang.String playerPrefix)
Method Detail

getReturnLine

public java.lang.String getReturnLine()
Returns the result as String

Returns:
the result as String

setReturnLine

public void setReturnLine(java.lang.String line)
Sets the result line.

Parameters:
line - the result line.

getCommand

public java.lang.String getCommand()
                            throws DataException
Returns the command as String

Returns:
the command as String
Throws:
DataException

toString

public java.lang.String toString()

decode

public java.lang.String decode(java.lang.String aString)
                        throws DataException
Decodes the given string, This is used to remove any special characters written by the Squeezebox server and replace them with normal characters.

Parameters:
aString - the String which should be decoded
Returns:
a decoded String
Throws:
DataException

getValue

public java.lang.String getValue()
                          throws DataException
returns the value for the ReturnData object as String

Returns:
the value for the ReturnData object as String
Throws:
DataException