Hi Mohan,
Source:
one
two
three
if you share data is looks exact, i mean each line you should be pick and shared to target field. if that is currect.
you can create source structure like below.
<MT_test>
<row>(0..to..unbounded)
<field>(0..to 1)
and FCC should be like below.
Record Structure : row
row.fieldNames: field
row.endSeparator: 'nl'
and then coming to mapping , you should be able to convert all lines which has single field( here filed) to target each filed.
Note: you no need to go java mapping.
if i am thinking wrong pls share exact source file(txt) which you had. so that some one can easily help you.
BR,
Maheswarareddy