public abstract class AbstractContentParserTextMarkupAware extends AbstractContentParserText
ContentParser
for text that may contain
markup.KEY_EXTENSION, KEY_MIMETYPE
VARIABLE_NAME_CREATOR, VARIABLE_NAME_KEYWORDS, VARIABLE_NAME_LANGUAGE, VARIABLE_NAME_TEXT, VARIABLE_NAME_TITLE
Constructor and Description |
---|
AbstractContentParserTextMarkupAware()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialize()
This method performs the actual
initialization . |
void |
parse(BufferedReader bufferedReader,
ContentParserOptions options,
MutableGenericContext context,
StringBuilder textBuffer)
This method parses the content of the given
bufferedReader and
appends the textual content to the textBuffer . |
getEncodingUtil, getExtension, getMimetype, getXmlUtil, parse, parseLine, parseProperty, parseProperty, setEncodingUtil, setXmlUtil
getAlternativeKeyArray, getPrimaryKeys, getSecondaryKeyArray, getSecondaryKeys, parse, parse, setGenericContextFactory
createLogger, getLogger
doInitialized, getInitializationState, initialize
public AbstractContentParserTextMarkupAware()
protected void doInitialize()
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractContentParserText
public void parse(BufferedReader bufferedReader, ContentParserOptions options, MutableGenericContext context, StringBuilder textBuffer) throws Exception
bufferedReader
and
appends the textual content to the textBuffer
. Additional
metadata can directly be set in the given properties
.parse
in class AbstractContentParserText
bufferedReader
- is where to read the content from.options
- are the ContentParserOptions
.context
- is where the metadata is collected.textBuffer
- is the buffer where the textual content should be
appended to.Exception
- if something goes wrong.Copyright © 2001–2016 mmm-Team. All rights reserved.