public abstract class BaseDocumentParser extends Object implements DocumentParser
ASCIIDOC, LATEX, MARKDOWN, PARSER_MAP, PLAIN, WIKI
Constructor and Description |
---|
BaseDocumentParser() |
Modifier and Type | Method and Description |
---|---|
protected BufferedReader |
createReader(InputStream is)
create BufferedReader from InputStream is.
|
Document |
parse(File file,
SentenceExtractor sentenceExtractor,
RedPenTokenizer tokenizer)
Given input file name, return Document instance for the specified file.
|
Document |
parse(String content,
SentenceExtractor sentenceExtractor,
RedPenTokenizer tokenizer)
Given content, return Document instance for the specified file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of, parse, parse
public Document parse(String content, SentenceExtractor sentenceExtractor, RedPenTokenizer tokenizer) throws RedPenException
DocumentParser
parse
in interface DocumentParser
content
- input contentsentenceExtractor
- SentenceExtractor objecttokenizer
- tokenizerRedPenException
- if Parser failed to parse input.public Document parse(File file, SentenceExtractor sentenceExtractor, RedPenTokenizer tokenizer) throws RedPenException
DocumentParser
parse
in interface DocumentParser
file
- input filesentenceExtractor
- SentenceExtractor objecttokenizer
- tokenizerRedPenException
- if Parser failed to parse input.protected BufferedReader createReader(InputStream is)
is
- InputStream using to parseCopyright © 2015. All rights reserved.