Hello,
In a format call 'GRIB' there is bitmap section, so far i used a classic java Bitset but on some files it takes a lot of memory.
So I'm trying to use RoamingBitmap instead, but at writing I didn't find any way to get a compact byte[] as in Bitset.toArray.
Maybe I missing it, something like :
BitSet bs = BitSetUtil.toBiset(RoamingBitmap)
Or maybe there is somekind of serializer ? How do you suggest it could be done in a efficient way (looping on all int to rebuild the byte[] would obviously be inefficient) ?
Thanks