Package com.cognex.cmbsdk
Class DmccResponse
java.lang.Object
com.cognex.cmbsdk.DmccResponse
Represents a DMCC response from a connected device.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Returns the binary data portion of the response.getError()Returns anExceptionobject, that represents the error which occurred during the generation of this response.Returns the payload content.intReturns the response identifier.intinthashCode()
-
Method Details
-
getResponseId
public int getResponseId()Returns the response identifier.- Returns:
- The response id.
-
getStatusCode
public int getStatusCode()- Returns:
- the DMCC status code
-
getPayLoad
Returns the payload content.- Returns:
- The payload content.
-
getBinaryData
public byte[] getBinaryData()Returns the binary data portion of the response.- Returns:
- The binary data as a byte array.
-
getError
Returns anExceptionobject, that represents the error which occurred during the generation of this response. If there was no error, this method returnsnull.- Returns:
- The
Exceptionobject that represents the error, ornullif there was no error.
-
equals
-
hashCode
public int hashCode()
-