|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmythapi.protocol.impl.MythPacket
public class MythPacket
| Field Summary |
|---|
| Fields inherited from interface org.jmythapi.protocol.IMythPacket |
|---|
DELIM |
| Constructor Summary | |
|---|---|
MythPacket(ProtocolVersion protoVersion,
List<String> packetArguments)
Creates a IMythPacket from the given argument list. |
|
MythPacket(ProtocolVersion protoVersion,
String packetString)
Creates a IMythPacket from the given string. |
|
MythPacket(ProtocolVersion protoVersion,
String[] packetArguments)
Creates a IMythPacket from the given argument array. |
|
| Method Summary | |
|---|---|
String |
getPacketArg(int idx)
Gets the packet argument value at the given position. |
List<String> |
getPacketArgs()
Gets the packet arguments. |
int |
getPacketArgsLength()
Gets the amount of the packet arguments. |
Date |
getPacketCreationTime()
Gets the time when this packet was created. |
ProtocolVersion |
getVersionNr()
Gets the protocol-version of an object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MythPacket(ProtocolVersion protoVersion,
String packetString)
IMythPacket from the given string.
protoVersion - the MythTV-protocol version this packet belongs topacketString - the packet data as String, e.g.
QUERY_MEMSTATS or
1002[]:[]224[]:[]853[]:[]853
public MythPacket(ProtocolVersion protoVersion,
String[] packetArguments)
IMythPacket from the given argument array.
protoVersion - the MythTV-protocol version this packet belongs topacketArguments - the packet data as Array, e.g.
[QUERY_MEMSTATS] or
[1002,224,853,853]
public MythPacket(ProtocolVersion protoVersion,
List<String> packetArguments)
IMythPacket from the given argument list.
protoVersion - the MythTV-protocol version this packet belongs topacketArguments - the packet data as list, e.g.
[QUERY_MEMSTATS] or
[1002,224,853,853]| Method Detail |
|---|
public List<String> getPacketArgs()
IMythPacket
getPacketArgs in interface IMythPacketpublic int getPacketArgsLength()
IMythPacket
getPacketArgsLength in interface IMythPacketpublic String getPacketArg(int idx)
IMythPacket
getPacketArg in interface IMythPacketidx - the position of the desired argument
public Date getPacketCreationTime()
IMythPacket
getPacketCreationTime in interface IMythPacketpublic String toString()
toString in class Objectpublic ProtocolVersion getVersionNr()
IVersionable
getVersionNr in interface IVersionable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||