diff --git a/src/java/org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.java b/src/java/org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.java index 2c9a06289..64e0dafcb 100644 --- a/src/java/org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.java +++ b/src/java/org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.java @@ -40,132 +40,131 @@ import org.apache.poi.util.LittleEndian; * textual form. */ public class HPSFPropertiesExtractor extends POITextExtractor { - public HPSFPropertiesExtractor(POITextExtractor mainExtractor) { - super(mainExtractor); - } - public HPSFPropertiesExtractor(POIDocument doc) { - super(doc); - } - public HPSFPropertiesExtractor(POIFSFileSystem fs) { - super(new PropertiesOnlyDocument(fs)); - } - public HPSFPropertiesExtractor(NPOIFSFileSystem fs) { - super(new PropertiesOnlyDocument(fs)); - } + public HPSFPropertiesExtractor(POITextExtractor mainExtractor) { + super(mainExtractor); + } + public HPSFPropertiesExtractor(POIDocument doc) { + super(doc); + } + public HPSFPropertiesExtractor(POIFSFileSystem fs) { + super(new PropertiesOnlyDocument(fs)); + } + public HPSFPropertiesExtractor(NPOIFSFileSystem fs) { + super(new PropertiesOnlyDocument(fs)); + } - public String getDocumentSummaryInformationText() { - DocumentSummaryInformation dsi = document.getDocumentSummaryInformation(); - StringBuffer text = new StringBuffer(); + public String getDocumentSummaryInformationText() { + DocumentSummaryInformation dsi = document.getDocumentSummaryInformation(); + StringBuffer text = new StringBuffer(); - // Normal properties - text.append( getPropertiesText(dsi) ); + // Normal properties + text.append( getPropertiesText(dsi) ); - // Now custom ones - CustomProperties cps = dsi == null ? null : dsi.getCustomProperties(); - if(cps != null) { - Iterator keys = cps.nameSet().iterator(); - while(keys.hasNext()) { - String key = keys.next(); - String val = getPropertyValueText( cps.get(key) ); - text.append(key + " = " + val + "\n"); - } - } + // Now custom ones + CustomProperties cps = dsi == null ? null : dsi.getCustomProperties(); + if (cps != null) { + Iterator keys = cps.nameSet().iterator(); + while (keys.hasNext()) { + String key = keys.next(); + String val = getPropertyValueText( cps.get(key) ); + text.append(key + " = " + val + "\n"); + } + } - // All done - return text.toString(); - } - public String getSummaryInformationText() { - SummaryInformation si = document.getSummaryInformation(); + // All done + return text.toString(); + } + public String getSummaryInformationText() { + SummaryInformation si = document.getSummaryInformation(); - // Just normal properties - return getPropertiesText(si); - } + // Just normal properties + return getPropertiesText(si); + } - private static String getPropertiesText(SpecialPropertySet ps) { - if(ps == null) { - // Not defined, oh well - return ""; - } + private static String getPropertiesText(SpecialPropertySet ps) { + if (ps == null) { + // Not defined, oh well + return ""; + } - StringBuffer text = new StringBuffer(); + StringBuffer text = new StringBuffer(); - PropertyIDMap idMap = ps.getPropertySetIDMap(); - Property[] props = ps.getProperties(); - for(int i=0; i