Instead of referring to the magic constant 0xF117, reference the value in the EscherRecordTypes enum.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@
1886988 13f79535-47bb-0310-9956-
ffa450edef68
// When parsing the BStoreDelay stream, [MS-ODRAW] says that we
// should terminate if the type isn't 0xf007 or 0xf018->0xf117
- if (!((type == EscherRecordTypes.BSE.typeID) || (type >= EscherRecordTypes.BLIP_START.typeID && type <= 0xf117))) {
+ if (!((type == EscherRecordTypes.BSE.typeID) ||
+ (type >= EscherRecordTypes.BLIP_START.typeID && type <= EscherRecordTypes.BLIP_END.typeID))) {
break;
}
dataStream, offset );
if ( nextRecord.getRecordId() != EscherRecordTypes.BSE.typeID
&& ( nextRecord.getRecordId() < EscherRecordTypes.BLIP_START.typeID || nextRecord
- .getRecordId() > (short) 0xF117 ) )
+ .getRecordId() > EscherRecordTypes.BLIP_END.typeID ) )
break;
int blipRecordSize = nextRecord.fillFields( dataStream, offset,