[Java]: Added static methods to get the headerSize for groups and var data. Enhancement #92.