Re: [Servingxml-help] reading file
Brought to you by:
danielaparker
From: Daniel P. <dan...@sy...> - 2007-04-07 04:32:47
|
The framework doesn't currently support that, and any support along those lines is probably some ways off. To achieve this at all, you'd have to modify ServingXML source, by extending FlatRecordReceiverImpl, overriding the bodyRecord method, and modifying the received bytes before calling super.bodyRecord. You could then use your class in the FlatFileReader readRecords method, replacing "new FlatRecordReceiverImpl" with "new MyFlatRecordReceiver". But I would suggest pre-filtering the input file in a separate program instead. Daniel ----- Original Message ----- From: "Sandhya" <sa...@la...> To: <ser...@li...> Sent: Thursday, April 05, 2007 9:50 PM Subject: [Servingxml-help] reading file > Hi > > I would like to modify the data of a delimited file as it is being read, > but before it is constructed into a Record object. Just the raw > bytes/chars. Can you please help with this. > > Regards > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Servingxml-help mailing list > Ser...@li... > https://lists.sourceforge.net/lists/listinfo/servingxml-help > |