|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jtopenlite.command.Parameter
public abstract class Parameter
Abstract parent class for all program parameters.
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
protected |
Parameter(int type)
|
Method Summary | |
---|---|
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. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
protected Parameter(int type)
Method Detail |
---|
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 String parseString(int offset, int length) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |