commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew C. Oliver" <>
Subject Re: [Morphos] Proposal for new interface
Date Fri, 06 Sep 2002 14:14:52 GMT
> We cannot have the SAX pipeline do something, give me an intermediate 
> result, then restarted by giving the intermediate result back, etc.
> You can do it with Stream Pipelines, because you call the first 
> Morpher on a Stream, serialize the output to a File, then give that 
> file to another Morpher... etc. 

Oh god that sounds slow and you can't do that with HSSF.  Don't think in 
terms of files.

> Yes, we need this.
> I propose:
>  boolean canMorph(ObjectFlavor input, ObjectFlavor output) {
>    ...
>  }
> It's better be because if input is a Stream, it's too generic to 
> understand if it can work on it.
>  ObjectFlavor[] getSupportedInputFlavors()
>  ObjectFlavor[] getSupportedOutputFlavors()()
> A morpher could support multiple ObjectFlavors.
Why ObjectFlavor?  I don't see a need for this, there is already support 
for doing this in the JDK and code examples (anything using the 
compareable intereface).  


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message