public class UnisysDataConvertor
extends java.lang.Object
Constructor and Description |
---|
UnisysDataConvertor() |
Modifier and Type | Method and Description |
---|---|
static void |
asciiToEbcdic(CBLBean dataClass,
java.lang.String inputFileName,
java.lang.String outputFileName)
Convert a datafile containing ASCII datafile to EBCDIC
Note that the persistenceFile should contain the full definition of the Binary and Non-binary fields.
|
static void |
asciiToEbcdic(CBLBean dataClass,
java.lang.String inputFileName,
java.lang.String outputFileName,
int forceNewLineType)
Convert a datafile containing ASCII datafile to EBCDIC
Note that the persistenceFile should contain the full definition of the Binary and Non-binary fields.
|
static void |
convertRecordLine(char[] nextLine,
java.util.List<AbstractCBLField> fieldList,
boolean unisysToIBM)
convert a string line for the record containing Fields
|
static void |
main(java.lang.String[] args)
command line startup ...
|
static void |
unisysToIBM(CBLBean dataClass,
java.lang.String inputFileName,
java.lang.String outputFileName)
Convert a datafile containing EBCDIC datafile to ASCII
Note that the persistenceFile should contain the full definition of the Binary and Non-binary fields.
|
static void |
unisysToIBM(CBLBean dataClass,
java.lang.String inputFileName,
java.lang.String outputFileName,
int forceNewLineType)
Convert a datafile containing EBCDIC datafile to ASCII
Note that the persistenceFile should contain the full definition of the Binary and Non-binary fields.
|
public static final void unisysToIBM(CBLBean dataClass, java.lang.String inputFileName, java.lang.String outputFileName) throws java.io.IOException
dataClass
- : Class representing the structure of to the datafileinputFileName
- - full name/path of the ebcidic datafileOutputFileName
- - full name./path of the target ASCII file.java.io.IOException
public static final void unisysToIBM(CBLBean dataClass, java.lang.String inputFileName, java.lang.String outputFileName, int forceNewLineType) throws java.io.IOException
dataClass
- : Class representing the structure of to the datafileinputFileName
- - full name/path of the ebcidic datafileOutputFileName
- - full name./path of the target ASCII file.forceNewLine
- - add a new LF/CR after each migrated record is written.java.io.IOException
public static final void asciiToEbcdic(CBLBean dataClass, java.lang.String inputFileName, java.lang.String outputFileName) throws java.io.IOException
dataClass
- : Class representing the structure of to the datafileinputFileName
- - full name/path of the ASCII datafileOutputFileName
- - full name./path of the target EBCDIC file.java.io.IOException
public static final void asciiToEbcdic(CBLBean dataClass, java.lang.String inputFileName, java.lang.String outputFileName, int forceNewLineType) throws java.io.IOException
dataClass
- : Class representing the structure of to the datafileinputFileName
- - full name/path of the ASCII datafileOutputFileName
- - full name./path of the target EBCDIC file.java.io.IOException
public static void main(java.lang.String[] args)
args
- public static void convertRecordLine(char[] nextLine, java.util.List<AbstractCBLField> fieldList, boolean unisysToIBM)
nextLine
- fieldList
- unisysToIBM
- Copyright SoftwareMining. All Rights Reserved.