T
- Expected targetType.public class MATLABResult<T>
extends java.lang.Object
Constructor and Description |
---|
MATLABResult() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getResult()
Returns the result of the execution of a MATLAB function deployed on the MATLAB Production Server.
|
static MATLABResult |
newInstance(MATLABParams matlabParams,
byte[] byteArray)
Creates a MATLABResult object after passing the required arguments.
|
static MATLABResult |
newInstance(MATLABParams matlabParams,
java.io.InputStream inputStream)
Creates a MATLABResult object after passing the required arguments.
|
public static MATLABResult newInstance(MATLABParams matlabParams, java.io.InputStream inputStream)
matlabParams
- MATLABParams
object created during the initial POST requestinputStream
- Response body of the GET request that gets the resultMATLABResult
objectpublic static MATLABResult newInstance(MATLABParams matlabParams, byte[] byteArray)
matlabParams
- MATLABParams
object created during the initial POST requestbyteArray
- Response body of the GET request that gets the resultMATLABResult
objectpublic <T> T getResult() throws MATLABException
T
- Expected targetTypeMATLABException
- If an error occurs during the execution of the MATLAB functionCopyright 2010-2016 The MathWorks, Inc.