public abstract class Parameter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_INPUT
Constant representing an input parameter.
|
static int |
TYPE_INPUT_OUTPUT
Constant representing an input/output parameter.
|
static int |
TYPE_NULL
Constant representing a null parameter.
|
static int |
TYPE_OUTPUT
Constant representing an output parameter.
|
Modifier | Constructor and Description |
---|---|
protected |
Parameter(int type) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getInputData()
Returns the input data for this parameter.
|
int |
getInputLength()
Returns the input length of this parameter.
|
int |
getMaxLength()
Returns the maximum length of this parameter.
|
byte[] |
getOutputData()
Returns the output data for this parameter.
|
int |
getOutputLength()
Returns the output length of this parameter.
|
int |
getType()
Returns the type of this parameter.
|
boolean |
isInput()
Returns true if the type of this parameter is input or input/output.
|
boolean |
isOutput()
Returns true if the type of this parameter is output or input/output.
|
int |
parseInt(int offset)
Convenience method to retrieve the 4-byte integer value in the output data at the specified offset.
|
java.lang.String |
parseString(int offset,
int length)
Convenience method to retrieve the CCSID 37 String in the output data at the specified offset and length.
|
protected void |
setOutputData(byte[] data) |
public static final int TYPE_NULL
public static final int TYPE_INPUT
public static final int TYPE_OUTPUT
public static final int TYPE_INPUT_OUTPUT
public byte[] getInputData()
public int getInputLength()
public int getOutputLength()
public int getMaxLength()
protected void setOutputData(byte[] data)
public byte[] getOutputData()
public boolean isInput()
public boolean isOutput()
public int getType()
public int parseInt(int offset)
public java.lang.String parseString(int offset, int length) throws java.io.IOException
java.io.IOException