Class XWPFStylesShim
java.lang.Object
org.apache.tika.parser.microsoft.ooxml.xwpf.XWPFStylesShim
Scrapes from styles.xml each style's name, its basedOn parent and whether
its own run properties set bold or italics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XWPFStylesShimEmpty singleton to be used when there is no style info -
Constructor Summary
ConstructorsConstructorDescriptionXWPFStylesShim(org.apache.poi.openxml4j.opc.PackagePart part, ParseContext parseContext) -
Method Summary
-
Field Details
-
EMPTY_STYLES
Empty singleton to be used when there is no style info
-
-
Constructor Details
-
XWPFStylesShim
public XWPFStylesShim(org.apache.poi.openxml4j.opc.PackagePart part, ParseContext parseContext) throws IOException, TikaException, SAXException - Throws:
IOExceptionTikaExceptionSAXException
-
-
Method Details
-
getStyleName
- Parameters:
styleId-- Returns:
- style's name or null if styleId is null or can't be found
-
isBold
- Returns:
- whether the style, or the nearest style it is based on that says either way, sets bold; false if none does
-
isItalics
- Returns:
- whether the style, or the nearest style it is based on that says either way, sets italics; false if none does
-