Package com.logicaldoc.parser
Class OpenXMLParser
- java.lang.Object
-
- com.logicaldoc.core.parser.AbstractParser
-
- com.logicaldoc.parser.OpenXMLParser
-
- All Implemented Interfaces:
com.logicaldoc.core.parser.Parser
public class OpenXMLParser extends com.logicaldoc.core.parser.AbstractParser
This parser is able to extract text from Office documents- Since:
- 1.0.0
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description OpenXMLParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countPages(InputStream input, String filename)
void
internalParse(InputStream input, String filename, String encoding, Locale locale, String tenant, com.logicaldoc.core.document.Document document, String fileVersion, StringBuffer output)
String
parse(File file, String filename, String encoding, Locale locale, String tenant, com.logicaldoc.core.document.Document document, String fileVersion)
-
-
-
Method Detail
-
parse
public String parse(File file, String filename, String encoding, Locale locale, String tenant, com.logicaldoc.core.document.Document document, String fileVersion)
- Specified by:
parse
in interfacecom.logicaldoc.core.parser.Parser
- Overrides:
parse
in classcom.logicaldoc.core.parser.AbstractParser
-
internalParse
public void internalParse(InputStream input, String filename, String encoding, Locale locale, String tenant, com.logicaldoc.core.document.Document document, String fileVersion, StringBuffer output)
-
countPages
public int countPages(InputStream input, String filename)
- Specified by:
countPages
in interfacecom.logicaldoc.core.parser.Parser
- Overrides:
countPages
in classcom.logicaldoc.core.parser.AbstractParser
-
-