public static BATBlock createBATBlock(final POIFSBigBlockSize bigBlockSize, ByteBuffer data){BATBlock block = new BATBlock(bigBlockSize);byte[] buffer = new byte[LittleEndian.INT_SIZE];for(int i=0; i<block._values.length; i++) {data.get(buffer);block._values[i] = LittleEndian.getInt(buffer);}block.recomputeFree();return block;}
public static BATBlock CreateBATBlock(POIFSBigBlockSize bigBlockSize, ByteBuffer data){BATBlock block = new BATBlock(bigBlockSize);byte[] buffer = new byte[LittleEndianConsts.INT_SIZE];for (int i = 0; i < block._values.Length; i++){data.Read(buffer);block._values[i] = LittleEndian.GetInt(buffer);}block.RecomputeFree();return block;}