Class XWPFStylesShim
- java.lang.Object
-
- org.apache.tika.parser.microsoft.ooxml.xwpf.XWPFStylesShim
-
public class XWPFStylesShim extends java.lang.Object
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 Summary
Fields Modifier and Type Field Description static XWPFStylesShim
EMPTY_STYLES
Empty singleton to be used when there is no style info
-
Constructor Summary
Constructors Constructor Description XWPFStylesShim(PackagePart part, ParseContext parseContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getStyleName(java.lang.String styleId)
-
-
-
Field Detail
-
EMPTY_STYLES
public static XWPFStylesShim EMPTY_STYLES
Empty singleton to be used when there is no style info
-
-
Constructor Detail
-
XWPFStylesShim
public XWPFStylesShim(PackagePart part, ParseContext parseContext) throws java.io.IOException, TikaException, org.xml.sax.SAXException
- Throws:
java.io.IOException
TikaException
org.xml.sax.SAXException
-
-