FileDocCategorySizeDatePackage
ReadTitle.javaAPI DocApache Poi 3.0.13143Mon Jan 01 12:39:42 GMT 2007org.apache.poi.hpsf.examples

ReadTitle

public class ReadTitle extends Object

Sample application showing how to read a OLE 2 document's title. Call it with the document's file name as command line parameter.

Explanations can be found in the HPSF HOW-TO.

author
Rainer Klute <klute@rainer-klute.de>
version
$Id: ReadTitle.java 489730 2006-12-22 19:18:16Z bayard $
since
2003-02-01

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

Runs the example program.

param
args Command-line arguments. The first command-line argument must be the name of a POI filesystem to read.
throws
IOException if any I/O exception occurs.

        final String filename = args[0];
        POIFSReader r = new POIFSReader();
        r.registerListener(new MyPOIFSReaderListener(),
                           "\005SummaryInformation");
        r.read(new FileInputStream(filename));