Sample application showing how to read a document's custom property set. Call it with the document's file name as command-line parameter.
Explanations can be found in the HPSF HOW-TO.
return HexDump.dump(bytes, 0L, 0);
Runs the example program.paramargs Command-line arguments (unused).throwsIOException if any I/O exception occurs. final String filename = args[0]; POIFSReader r = new POIFSReader(); /* Register a listener for *all* documents. */ r.registerListener(new MyPOIFSReaderListener()); r.read(new FileInputStream(filename));
Runs the example program.
final String filename = args[0]; POIFSReader r = new POIFSReader(); /* Register a listener for *all* documents. */ r.registerListener(new MyPOIFSReaderListener()); r.read(new FileInputStream(filename));
System.out.println(msg);