0

I have to read a text file from item reader into my item processor. But now I have to read more than one file in my item processor.

And I have one more doubt in text file reader: how to read a text file without using file concept?

xuesheng
  • 3,396
  • 2
  • 29
  • 38
Syed Ali
  • 5
  • 4
  • Use the decorator pattern to nest/wrap `ItemReader`s. The object passed to the processor contains the attributes from reading both files. Try it out, and if problems post the code. What do you mean _read a text file without using file concept_? – Andrew S Aug 06 '18 at 12:50
  • Thanks for your reply... – Syed Ali Aug 07 '18 at 05:37
  • I need to Read a text file in java but I don't want to use any file reader and buffered reader concept is any other way to read a file – Syed Ali Aug 07 '18 at 05:41
  • Why don't you want to use SpringBatch Reader? any specific need? – Niraj Sonawane Aug 07 '18 at 11:13

0 Answers0