I have a solution for me.
By using java.lang.reflect.Field I'm able to access the private "record"
field of HSSFCell.
<code>
import java.lang.reflect.Field;
HSSFWorkbook wb;
// ... initialize wb
HSSFCell cell;
// ... initialize cell by iterating through input
String styleName = null;
Field record = cell.getClass().getDeclaredField("record");
record.setAccessible(true);
try {
LabelSSTRecord sstLabel = (LabelSSTRecord) record.get(cell);
styleName = wb.getSSTString(sstLabel.getSSTIndex());
}
catch (Exception e) {
System.err.println("WARNING: cannot get possible style name: " + e);
}
record.setAccessible(false);
System.err.println("### style name: " + styleName);
</code>
This sees to be the only possible way to get what I want.
Cheers
Axel