<changes>
<release version="3.8-beta5" date="2011-??-??">
+ <action dev="poi-developers" type="add">51670 - avoid LeftoverDataException when reading .xls files with invalid LabelRecords</action>
<action dev="poi-developers" type="add">51196 - prevent NPE in XWPFPicture.getPictureData() </action>
<action dev="poi-developers" type="add">51771 - prevent NPE when getting object data from OLEShape in HSLF</action>
<action dev="poi-developers" type="add">51196 - more progress with Chart APi in XSSF</action>
package org.apache.poi.hssf.record;
import org.apache.poi.util.HexDump;
+import org.apache.poi.util.POILogFactory;
+import org.apache.poi.util.POILogger;
/**
* Label Record (0x0204) - read only support for strings stored directly in the cell.. Don't
* @see org.apache.poi.hssf.record.LabelSSTRecord
*/
public final class LabelRecord extends Record implements CellValueRecordInterface {
+ private final static POILogger logger = POILogFactory.getLogger(LabelRecord.class);
+
public final static short sid = 0x0204;
private int field_1_row;
} else {
field_6_value = "";
}
+
+ if (in.remaining() > 0) {
+ logger.log(POILogger.INFO,
+ "LabelRecord data remains: " + in.remaining() +
+ " : " + HexDump.toHex(in.readRemainder())
+ );
+ }
}
/*
*/
public boolean isUnCompressedUnicode()
{
- return (field_5_unicode_flag == 1);
+ return (field_5_unicode_flag & 0x01) != 0;
}
/**