Hi Erik!
> In ProcessorImpl, you can call getInputs() which returns a Map of input
> names -> List of ProcessorInput. This is a private API in that it is not
> declared in the Processor interface. This should contain all the connected
> inputs.
As far as I see getInputs only returns the list of inputs that have been added
with ProcessorImpl.addInput (my tests seemed to proof this, and the only
invocation of inputMap.put() is in method ProcessorImpl.addInput - but maybe
I oversee something).
But, what I would like to know is what is given in the <processor>-Tag of the
defining xpl-file so that I can dynamically adapt the behaviour of my Java
code on it.
> You probably meant getInputsInfo() returns only the declared inputs, no?
No.
> Those inputs are not like regular input streams: they represent XML
> infosets received as SAX events. So you can't receive them byte by byte, at
> the low level you have to implement a SAX ContentHandler. Why do you need a
> stream of bytes?
You are right, sorry. We want to write the data to a file and - given my low
experience as a orbeon beginner - therefore I assumed it could be
easier/faster/better in whatever way. But it turns out that
XMLWriter writer = new XMLWriter( new FileOutputStream( filename ) );
writer.write( inputDocument );
writer.close();
perfectly does what we need.
Thanks,
Martin
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user