It's not necessary to unpack any file to the file system. Code looks
like below.
Regards
Burkhard
InputStream in = url.openConnection().getInputStream();
if (isGz)
{
in = new GZIPInputStream(in);
}
channel =
new ReadableByteChannelDecorator(
Channels.newChannel(in), this, url,
requestor);
Am 15.09.2023 um 08:55 schrieb Andrea Aime:
Hi,
again, no issue with the new functionality... wondering what you can
achieve in 20-30 lines, I'm guessing you
would unpack the file somewhere so that the rest of the NIO based
machinery can read it?
If so, that needs to be manageable to avoid leaks, the unpacked files
need to be cleaned up on store disposal.
Cheers
Andrea
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel