field_3_sheetname_length = data[ 6 + offset ];
field_4_compressed_unicode_flag = data[ 7 + offset ];
field_5_sheetname = new String(data, 8 + offset,
- ( int ) field_3_sheetname_length);
+ LittleEndian.ubyteToInt( field_3_sheetname_length));
}
/**
if (data[ 15 ] == 0)
{ // is compressed unicode
field_11_font_name = new String(data, 16,
- field_10_font_name_len);
+ LittleEndian.ubyteToInt(field_10_font_name_len));
}
else
{ // is not compressed unicode
field_2_formatstring_len = data[ 2 + offset ];
field_3_zero = LittleEndian.getShort(data, 3 + offset);
field_4_formatstring = new String(data, 5 + offset,
- field_2_formatstring_len);
+ LittleEndian.ubyteToInt(field_2_formatstring_len));
}
/**
{
field_2_name_length = data[ 2 + offset ];
field_3_name = new String(data, 3 + offset,
- field_2_name_length);
+ LittleEndian.ubyteToInt(field_2_name_length));
}
// todo sanity check exception to make sure we're one or the other