Class XWPFStylesShim
java.lang.Object
org.apache.tika.parser.microsoft.ooxml.xwpf.XWPFStylesShim
For Tika, all we need (so far) is a mapping between styleId and a style's name.
 
This class uses SAX to scrape that info out of the styles.xml file. If either the styleId or the style's name is null, no information is recorded.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic XWPFStylesShimEmpty singleton to be used when there is no style info
- 
Constructor SummaryConstructorsConstructorDescriptionXWPFStylesShim(org.apache.poi.openxml4j.opc.PackagePart part, ParseContext parseContext) 
- 
Method Summary
- 
Field Details- 
EMPTY_STYLESEmpty singleton to be used when there is no style info
 
- 
- 
Constructor Details- 
XWPFStylesShimpublic XWPFStylesShim(org.apache.poi.openxml4j.opc.PackagePart part, ParseContext parseContext) throws IOException, TikaException, SAXException - Throws:
- IOException
- TikaException
- SAXException
 
 
- 
- 
Method Details- 
getStyleName- Parameters:
- styleId-
- Returns:
- style's name or null if styleId is null or can't be found
 
 
-