|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.reprap.comms.IncomingMessage org.reprap.comms.messages.VersionResponseMessage
public class VersionResponseMessage
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.reprap.comms.IncomingMessage |
---|
IncomingMessage.InvalidPayloadException |
Constructor Summary | |
---|---|
VersionResponseMessage(IncomingContext incomingContext)
|
Method Summary | |
---|---|
int |
getVersion()
|
protected boolean |
isExpectedPacketType(byte packetType)
Implemented by subclasses to allow them to indicate if they understand or expect a given packetType. |
Methods inherited from class org.reprap.comms.IncomingMessage |
---|
getPayload, receiveData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionResponseMessage(IncomingContext incomingContext) throws java.io.IOException
incomingContext
-
java.io.IOException
Method Detail |
---|
public int getVersion() throws IncomingMessage.InvalidPayloadException
InvalidPayloadException
IncomingMessage.InvalidPayloadException
protected boolean isExpectedPacketType(byte packetType)
IncomingMessage
isExpectedPacketType
in class IncomingMessage
packetType
- the type of packet to receive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |