|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.breeweb.slimconnect.commands.AbstractCommand
Constructor Summary | |
AbstractCommand(java.lang.String[] params)
|
Method Summary | |
boolean |
expectStatus()
Returns wether this command expects the server to return any status info. |
java.lang.String |
getAsLine()
Returns the command as a String which can be send to the Squeezebox server. |
java.lang.String |
getResultString(java.io.InputStream aStream)
Returns the result as String reading from the given inputstream. |
abstract ReturnData |
getReturnData(java.lang.String aLine,
java.lang.String playerPrefix)
Makes sure the command gets executed, the result will be returned using a ReturnData object |
void |
setExpectStatus(boolean expectStatus)
Sets a boolean if a status line is expected. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractCommand(java.lang.String[] params)
Method Detail |
public java.lang.String getAsLine() throws DataException
DataException
public abstract ReturnData getReturnData(java.lang.String aLine, java.lang.String playerPrefix)
aLine
- the command as line.playerPrefix
- the prefix of the player to which this command is targeted.
public java.lang.String getResultString(java.io.InputStream aStream) throws java.io.IOException
aStream
- the input stream through which results can be read.
java.io.IOException
public boolean expectStatus()
false
public void setExpectStatus(boolean expectStatus)
expectStatus
- The expectStatus to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |