RE: Calabash: Java API

I think you will need something more generic, so that you can support
pipelines that that have multiple (or no) input/output ports or
accept/produce multiple documents.
You can have a look at our API in Calumet (Pipeline, PipelineInput,
PipelineOutput etc.); there are simple examples in the documentation
which is available here:
 
https://community.emc.com/docs/DOC-4242
 
Regards,
Vojtech



________________________________

	From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org]
On Behalf Of Leif Warner
	Sent: Wednesday, July 22, 2009 11:32 PM
	To: XProc Dev
	Subject: Calabash: Java API
	
	
	You could use the interface to Calabash I made for my online
processor. 
	The API is just something like:
	PipelineRunner piperunner = new PipelineRunner();
	
	
	piperunner.run(InputStream in, OutputStream out)
	
	
	where "in" is the xproc document, and out will be the "results"
port.
	
	
	The only modification I made to WritableDocument was to pass in
the OutputStream in the constructor, rather than having System.out
hard-coded in.  I just copied that class definition, renamed it, but it
still implements the same interface, so I didn't need to re-compile
Calabash for that. 
	 
	 

Received on Thursday, 23 July 2009 06:59:38 UTC