com.claritysys.util
Class FixedRecordGenerator
java.lang.Object
com.claritysys.util.FixedRecordGenerator
public class FixedRecordGenerator
- extends java.lang.Object
Generates a JavaBean for parsing/encoding fixed-width format records, such as
are used in legacy systems.
Run from command line, it takes as parameters:
- The path to an input file, which describes the record format.
- The name of the Java file to write out.
The input file has one line describing each field in the record format. Each
line is composed of comma-separated values, as follows:
- The formal field name. Different from JavaBean field name because
often illegal names are used. This gets written into a comment, to
assist in tying fields back to the 'spec' format.
- Field description -- remember, no commas! (Because each of
these fields is already comma separated).
- Field type and size, such as A25, D8, N12. All the generated fields
will be of type String anyway, but the size is critical to parse the
record correctly.
- Field name, as to be written in generated JavaBean.
- Version:
- $Revision: 2348 $
Method Summary |
static void |
main(java.lang.String[] args)
Run from command line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedRecordGenerator
public FixedRecordGenerator()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Run from command line.
Run with no args for usage.
- Throws:
java.io.IOException
Copyright ? 2002 Clarity Systems Group, LLC. All Rights Reserved.