Well I was hoping someone would reply to you by now ... the answer is that you need to turn on a Hint. The hint you need is probably defined at the JAI level.
I know Jesse had a good long talk with the developers on how to do this sort of thing in order to address some performance problems we had with JPEG. Here is what he remembers - looking at the RenderingHints object and the javadocs have good descriptions. If you can confirm this answer let me know and we can place it into the wiki for the next person. Jody > Hello > > who can tell me how to force ImageMosaicReader (i.e. JAI) to cache images? > > Actually I modified ImageMosaicReader so it reads image from a remote > location (http-based input stream), and I'd like to locally cache images. > > I tried putting : > > ImageIO.setCacheDirectory(cacheDir); > ImageIO.setUseCache(true); > > at the beginning of my main, but I don't see any files in the selected > cacheDir (a directory) > > Thanks in advance > Ant1 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
