-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05/18/2012 08:43 AM, Paolo Castagna wrote:
> Hi Paul, first of all, thanks for your comments and suggestions.
> 
> Paul Gearon wrote:
>> We recently pulled most of this code out and put it into a single
>> file.
>> 
>> http://mulgara.org/svn/mulgara/trunk/src/jar/util/java/org/mulgara/util/io/MappingUtil.java
>>
>>
>> 
Hopefully it's clear enough, but ask questions if there's anything too
obtuse.
> 
> The clean(...) method uses sun.misc.Cleaner and MappingUtil.java
> imports it, so I assume this would work on with Sun/Oracle JVMs, am
> I correct? Some of the Jena users (and some of those having
> problems with memory mapped files on Windows) do not use Oracle
> JVM, so I guess that approach would not work for them.

I just had a quick glimpse at IBM JRE 1.6, and it has sun.misc.Cleaner
and the interface sun.nio.ch.DirectBuffer also exists. Still, it's not
guaranteed to be portable, but reflection could solve the problem.

Best,
Moritz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAk+2ABoACgkQ264ap80Va8dbGgEAq5tvpX8wubawdABBgVfMC4Lg
2q1bSG9DKBWSXs1dRPAA+QEufI+GpvNJqYzv0wxbvUrODbnrYt7rCZb/T/UyGH1Q
=Y2Xq
-----END PGP SIGNATURE-----

Reply via email to