Building custom ETL components is a necessity in any ETL suite. With Talend it is not difficult to create your own components albeit it is not straightforward either.
I have written a tutorial that I just released in github together with a hopefully useful component as well (tFileInputCSVFilter).
The tFileInputCSVFilter component is just a second step after the initial approach of running the code out of a tJavaFlex component.
So you could basically try to develop your code using a tJavaFlex and once happy you can move to the custom Talend component creation. Of course you can jump right away into the component creation as well.