I need to write a collection of beans/entities into a flat file without
worrying with convertions, padding, alignment, fillers, etcs
For example, I'd like to parse a bean like:
public class Entity{
String name = "name"; // length = 10; align left; fill with spaces
Integer id = 123; // length = 5; align left; fill with spaces
Integer serial = 321 // length = 5; align to right; fill with '0'
Date register = new Date();// length = 8; convert to yyyyMMdd
}
... into ...
name 123 0032120110505
mikhas 5000 0122120110504
superuser 1 0000120101231
...
Smooks Fixed Length
<http://www.smooks.org/mediawiki/index.php?title=V1.5:Smooks_v1.5_User_Guide#Fixed_Length_Values>
I can do the read with "FixedLengthReaderConfigurator" class but i am unable
to find any write process.
--
View this message in context:
http://camel.465427.n5.nabble.com/Is-there-an-smart-way-to-write-a-fixed-length-flat-file-tp5743323.html
Sent from the Camel - Users mailing list archive at Nabble.com.