Getting filename to codec?
I'm implementing an ImageIO codec which is based on
an image library that, unfortunately, requires a file
name in order to open the image as opposed to supporting
using already opened files or streams.
I see that in writing the codec I can specify different
sorts of input objects (ImageInputStream, for example)
so it seems the codec can support opening the image
based on a string filename. What I don't see is how
to get JAI to send a filename across.
When I do a JAI.create( "ImageRead", filename ) it
seems that the ImageRead operation has already opened
the file and turned it into an ImageInputStream by the
time it gets to my codec. Is there a trick to getting
the data across? Or do I need to write my own JAI