Example usage for org.apache.poi POIDocument getSummaryInformation

List of usage examples for org.apache.poi POIDocument getSummaryInformation

Introduction

In this page you can find the example usage for org.apache.poi POIDocument getSummaryInformation.

Prototype

public SummaryInformation getSummaryInformation() 

Source Link

Document

Fetch the Summary Information of the document

Usage

From source file:no.trank.openpipe.parse.ms.POIUtils.java

License:Apache License

/**
 * Exctracts all properties of primitive type, String or Date from the document's summary information
 * and document summary information.//from w w  w .  j  a va2s . com
 * 
 * @param doc the poi document 
 * @return the properties
 */
public static Map<String, String> getProperties(POIDocument doc) {
    Map<String, String> map = new HashMap<String, String>();

    addProperties(map, doc.getSummaryInformation());
    addProperties(map, doc.getDocumentSummaryInformation());

    return map;
}