public class AS400RecordFormat
extends java.lang.Object
implements java.io.Serializable
Alphanumeric fields (type=a):
fieldname=length,type
Binary fields (type=b):
fieldname=length,type
Numeric fields (type=s or p):
fieldname=length,type,decimals
Hexadecimal fields (type=h)
fieldname=length,type
| Modifier and Type | Field and Description |
|---|---|
private com.ibm.as400.access.RecordFormat |
ivRecordFormat
The converted AS400 record format object.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
AS400RecordFormat(java.lang.String propname)
Constructs a new AS400 record format.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addField(java.lang.String name,
int length,
char type,
int decimals,
java.lang.String line)
Adds a field to the record format.
|
com.ibm.as400.access.RecordFormat |
getRecordFormat()
Returns the converted record format.
|
private static final long serialVersionUID
private com.ibm.as400.access.RecordFormat ivRecordFormat
public AS400RecordFormat(java.lang.String propname)
throws AS400RecordFormatException
propname - (String) The name of the properties file that contains
the record format data to convert. The file is assumed to reside
in a folder that is accessible via the classpath. The file name
is assumed to be lower case.AS400RecordFormatException - - if an error occurs while parsing
the properties file.private void addField(java.lang.String name,
int length,
char type,
int decimals,
java.lang.String line)
throws AS400RecordFormatException
name - (String) The name of the field.length - (int) The length of the field.type - (char) The data type of the field.decimals - (int) The number of decimal positions in the field.line - (String) The current properties line being converted.AS400RecordFormatException - - if an error occurs while adding
the field to the format.public com.ibm.as400.access.RecordFormat getRecordFormat()