Bens Stuff

Thursday, May 27, 2004

JAI is a worthless piece of crap!

I have never seen a more user unfriendly API in my life. How the heck does Sun expect us to use it? For instance, to create a TIFF image from a byte array, I saw in an example that you use JAI.create("tiff", params). What are the options for the first parameter? Who knows, it's not documented anywhere. What about the second parameter? Again, who knows? You may be thinking, well look at the generated API-DOCS. Alright, look at this.
Parameters:
opName - The name of the operation.
args - The source(s) and/or parameter(s) for the operation.
Ok Sun, what are my choices for opName? What about param? It's just a ParameterBlock argument. For that we have the ability to "add" various objects of type "Object" and native types. What do they do and what are my choices?

I think this is an example of how not to create an API. I guess I have a couple days of ripping my hair out trying to figure it out...Google, here I come!