if (filterFixedData == null || filterFixedData.length < 4)
{
continue;
}
Filter filter = new Filter();
filter.setID(Integer.valueOf(MPPUtility.getInt(filterFixedData, 0)));
filter.setName(MPPUtility.removeAmpersands(MPPUtility.getUnicodeString(filterFixedData, 4)));
byte[] filterVarData = varData.getByteArray(filter.getID(), getVarDataType());
if (filterVarData == null)
{
continue;
}
//System.out.println(MPPUtility.hexdump(filterVarData, true, 16, ""));
List<GenericCriteriaPrompt> prompts = new LinkedList<GenericCriteriaPrompt>();
filter.setShowRelatedSummaryRows(MPPUtility.getByte(filterVarData, 4) != 0);
filter.setCriteria(criteriaReader.process(file, filterVarData, 0, -1, prompts, null, criteriaType));
filter.setIsTaskFilter(criteriaType[0]);
filter.setIsResourceFilter(criteriaType[1]);
filter.setPrompts(prompts);
file.addFilter(filter);
//System.out.println(filter);
}
}