fis.readFully(buffer);
// decompress if necessary - the buffer size is 0 for uncompressed data
// Note: BBFile Table C specifies a decompression buffer size
if(uncompressBufSize > 0)
wigBuffer = (new CompressionUtils()).decompress(buffer, uncompressBufSize);
else
wigBuffer = buffer; // use uncompressed read buffer directly
}catch(IOException ex) {
log.error("Error reading Wig section for leaf item ", ex);
String error = String.format("Error reading Wig section for leaf item %d\n");