mirror of https://github.com/apache/poi.git
Add main method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@954834 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
741f499c4a
commit
de6f455d6d
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue