diff --git a/src/java/org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.java b/src/java/org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.java index 14bb16887d..1ba9b6441c 100644 --- a/src/java/org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.java +++ b/src/java/org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.java @@ -17,6 +17,8 @@ package org.apache.poi.hpsf.extractor; +import java.io.FileInputStream; +import java.io.IOException; import java.io.OutputStream; import java.util.Iterator; @@ -150,4 +152,13 @@ public class HPSFPropertiesExtractor extends POITextExtractor { throw new IllegalStateException("Unable to write, only for properties!"); } } + + public static void main(String[] args) throws IOException { + for(String file : args) { + HPSFPropertiesExtractor ext = new HPSFPropertiesExtractor( + new POIFSFileSystem(new FileInputStream(file)) + ); + System.out.println(ext.getText()); + } + } }