RecordFormatDocument class
The RecordFormatDocument
class enables your Java programs to convert between RFML representations
of data and Record and RecordFormat objects for use with other Toolbox for Java
components.
The RecordFormatDocument class represents an RFML source file, and it provides
methods that allow your Java program to perform the following actions:
- Compose RFML source files from Record objects, RecordFormat objects, and
byte arrays
- Generate Record objects, RecordFormat objects, and byte arrays that represent
the information that the RecordFormatDocument object contains
- Get and set the values of different objects and data types
- Generate XML (RFML) that represents the data that the RecordFormatDocument
object contains
- Serialize the RFML source file that the RecordFormatDocument object represents
For more information about the available methods, see the javadoc method
summary for the RecordFormatDocument class.
Using the RecordFormatDocument class with other Toolbox for Java classes
Use the RecordFormatDocument class with the following Toolbox for Java classes:
- Record-oriented classes, which include the record-level access file classes
(AS400File, SequentialFile, and KeyedFile) that read, manipulate, and write
Record objects. This category also includes the LineDataRecordWriter
class.
- Byte-oriented classes, which include certain DataQueue, UserSpace, and IFSFile
classes that read and write a byte-array of data at a time.
Do not use RecordFormatDocument class with the following Toolbox for Java classes,
which read and write data in forms that RecordFormatDocument does not address:
- The DataArea classes because the read and write methods deal only with String,
boolean, and BigDecimal data types.
- IFSTextFileInputStream and IFSTextFileOutputStream because these read and
write methods deal only with String.
- JDBC classes because RFML focuses only on data described by the iSeries
data description specification (DDS).