com.ibm.jtopenlite.command
Class InputOutputParameter
- java.lang.Object
-
- com.ibm.jtopenlite.command.Parameter
-
- com.ibm.jtopenlite.command.InputOutputParameter
-
public class InputOutputParameter extends Parameter
Represents a program parameter to be used as both input and output.
-
-
Field Summary
-
Fields inherited from class com.ibm.jtopenlite.command.Parameter
TYPE_INPUT, TYPE_INPUT_OUTPUT, TYPE_NULL, TYPE_OUTPUT
-
-
Constructor Summary
Constructors Constructor and Description InputOutputParameter(byte[] inputData, int outputLength)
Constructs a parameter with the provided input data and output length.
-
Method Summary
Methods Modifier and Type Method and Description byte[]
getInputData()
Returns the input data.int
getInputLength()
Returns the input length.int
getMaxLength()
Returns the maximum of the output length and input length of this parameter.byte[]
getOutputData()
Returns the output data.int
getOutputLength()
Returns the output length.protected void
setOutputData(byte[] data)
-
-
-
Constructor Detail
-
InputOutputParameter
public InputOutputParameter(byte[] inputData, int outputLength)
Constructs a parameter with the provided input data and output length.
-
-
Method Detail
-
getInputData
public byte[] getInputData()
Returns the input data.- Overrides:
getInputData
in classParameter
-
getInputLength
public int getInputLength()
Returns the input length.- Overrides:
getInputLength
in classParameter
-
getOutputLength
public int getOutputLength()
Returns the output length.- Overrides:
getOutputLength
in classParameter
-
getMaxLength
public int getMaxLength()
Returns the maximum of the output length and input length of this parameter.- Overrides:
getMaxLength
in classParameter
-
setOutputData
protected void setOutputData(byte[] data)
- Overrides:
setOutputData
in classParameter
-
getOutputData
public byte[] getOutputData()
Returns the output data.- Overrides:
getOutputData
in classParameter
-
-