public class OcrAgent extends ServiceAgent<OcrServiceResult>
clientIdentity, httpMethod, onCompleteListener, serviceResult, serviceResultClass, serviceUri| Constructor and Description |
|---|
OcrAgent(java.net.URI baseUri,
ClientIdentity clientIdentity,
byte[] imageBuffer,
java.lang.Object state)
Initializes an instance of the
OcrAgent class |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Override
getContentType method of ServiceAgent class |
byte[] |
getImageBuffer()
Gets the buffer containing the image
|
protected byte[] |
getRequestBodyData()
Override
getRequestBodyData method of ServiceAgent class |
protected void |
OnCompleteRequest()
Override
OnCompleteRequest of ServiceAgent class |
constructHttpRequest, getServiceResult, handleException, handleException, parseOutput, parseServiceResultRequired, processRequest, setServiceResultpublic OcrAgent(java.net.URI baseUri,
ClientIdentity clientIdentity,
byte[] imageBuffer,
java.lang.Object state)
throws java.lang.Exception
OcrAgent classbaseUri - URI to access serviceclientIdentity - the client identityimageBuffer - Request image bytesstate - specifies a user-defined objectjava.lang.Exceptionpublic byte[] getImageBuffer()
public java.lang.String getContentType()
getContentType method of ServiceAgent classgetContentType in class ServiceAgent<OcrServiceResult>protected byte[] getRequestBodyData()
throws HawaiiException
getRequestBodyData method of ServiceAgent classgetRequestBodyData in class ServiceAgent<OcrServiceResult>HawaiiException - byte[]protected void OnCompleteRequest()
OnCompleteRequest of ServiceAgent classOnCompleteRequest in class ServiceAgent<OcrServiceResult>