On 2010-11-06 15.04, Niclas Hedhman wrote:
I'm not sure that's the best example, since for reading files like that you
will end up with one object (a PDF-document) rather than 1-line->1
PDF-object. But for any such transformation, like the String2JSON example,
you just create your own Function<From,To>.

A "line" is a pretty specific 'case', and only applicable for text
data (not even necessary String data).

For instance, it is not possible to do XML parsing to let's say JSON,
on a line-by-line either...

Correct, so in that case your Input would perhaps be Input<Node,SAXException) instead, if you have an XML file with lots of nodes you want to make available as an input.

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to