Class OOXMLTikaBodyPartHandler
- java.lang.Object
-
- org.apache.tika.parser.microsoft.ooxml.OOXMLTikaBodyPartHandler
-
- All Implemented Interfaces:
OOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
public class OOXMLTikaBodyPartHandler extends Object implements OOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
-
-
Constructor Summary
Constructors Constructor Description OOXMLTikaBodyPartHandler(XHTMLContentHandler xhtml)
OOXMLTikaBodyPartHandler(XHTMLContentHandler xhtml, XWPFStylesShim styles, XWPFListManager listManager, OfficeParserConfig parserConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
embeddedOLERef(String relId)
void
embeddedPicRef(String picFileName, String picDescription)
void
endBookmark(String id)
void
endEditedSection()
void
endnoteReference(String id)
void
endParagraph()
void
endSDT()
void
endTable()
void
endTableCell()
void
endTableRow()
void
footnoteReference(String id)
void
hyperlinkEnd()
void
hyperlinkStart(String link)
boolean
isIncludeDeletedText()
boolean
isIncludeMoveFromText()
void
run(RunProperties runProperties, String contents)
void
startBookmark(String id, String name)
void
startEditedSection(String editor, Date date, OOXMLWordAndPowerPointTextHandler.EditType editType)
void
startParagraph(ParagraphProperties paragraphProperties)
void
startSDT()
void
startTable()
void
startTableCell()
void
startTableRow()
-
-
-
Constructor Detail
-
OOXMLTikaBodyPartHandler
public OOXMLTikaBodyPartHandler(XHTMLContentHandler xhtml)
-
OOXMLTikaBodyPartHandler
public OOXMLTikaBodyPartHandler(XHTMLContentHandler xhtml, XWPFStylesShim styles, XWPFListManager listManager, OfficeParserConfig parserConfig)
-
-
Method Detail
-
run
public void run(RunProperties runProperties, String contents) throws SAXException
- Specified by:
run
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
hyperlinkStart
public void hyperlinkStart(String link) throws SAXException
- Specified by:
hyperlinkStart
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Parameters:
link
- the link; can be null- Throws:
SAXException
-
hyperlinkEnd
public void hyperlinkEnd() throws SAXException
- Specified by:
hyperlinkEnd
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
startParagraph
public void startParagraph(ParagraphProperties paragraphProperties) throws SAXException
- Specified by:
startParagraph
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
endParagraph
public void endParagraph() throws SAXException
- Specified by:
endParagraph
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
startTable
public void startTable() throws SAXException
- Specified by:
startTable
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
endTable
public void endTable() throws SAXException
- Specified by:
endTable
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
startTableRow
public void startTableRow() throws SAXException
- Specified by:
startTableRow
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
endTableRow
public void endTableRow() throws SAXException
- Specified by:
endTableRow
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
startTableCell
public void startTableCell() throws SAXException
- Specified by:
startTableCell
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
endTableCell
public void endTableCell() throws SAXException
- Specified by:
endTableCell
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
startSDT
public void startSDT() throws SAXException
- Specified by:
startSDT
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
endSDT
public void endSDT()
- Specified by:
endSDT
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
-
startEditedSection
public void startEditedSection(String editor, Date date, OOXMLWordAndPowerPointTextHandler.EditType editType)
- Specified by:
startEditedSection
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
-
endEditedSection
public void endEditedSection()
- Specified by:
endEditedSection
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
-
isIncludeDeletedText
public boolean isIncludeDeletedText()
- Specified by:
isIncludeDeletedText
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
-
footnoteReference
public void footnoteReference(String id) throws SAXException
- Specified by:
footnoteReference
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
endnoteReference
public void endnoteReference(String id) throws SAXException
- Specified by:
endnoteReference
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
isIncludeMoveFromText
public boolean isIncludeMoveFromText()
- Specified by:
isIncludeMoveFromText
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
-
embeddedOLERef
public void embeddedOLERef(String relId) throws SAXException
- Specified by:
embeddedOLERef
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
embeddedPicRef
public void embeddedPicRef(String picFileName, String picDescription) throws SAXException
- Specified by:
embeddedPicRef
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
startBookmark
public void startBookmark(String id, String name) throws SAXException
- Specified by:
startBookmark
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
- Throws:
SAXException
-
endBookmark
public void endBookmark(String id)
- Specified by:
endBookmark
in interfaceOOXMLWordAndPowerPointTextHandler.XWPFBodyContentsHandler
-
-