public abstract class AbstractParser extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
static String |
SUPPORTED_MIME_TYPES |
LOG
Modifier | Constructor and Description |
---|---|
protected |
AbstractParser(CommandBuilder builder,
com.typesafe.config.Config config,
Command parent,
Command child,
MorphlineContext context) |
protected |
AbstractParser(com.typesafe.config.Config config,
Command parent,
Command child,
MorphlineContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addSupportedMimeType(String mediaType) |
protected Charset |
detectCharset(Record record,
Charset charset) |
protected boolean |
doProcess(Record record)
Processes the given record on the data plane of this command.
|
protected abstract boolean |
doProcess(Record record,
InputStream stream) |
protected void |
incrementNumRecords() |
static void |
removeAttachments(Record outputRecord) |
buildCommand, buildCommandChain, doNotify, getChild, getConfig, getConfigs, getContext, getCounter, getHistogram, getMeter, getParent, getTimer, isMeasuringMetrics, notify, process, validateArguments
public static final String SUPPORTED_MIME_TYPES
protected AbstractParser(CommandBuilder builder, com.typesafe.config.Config config, Command parent, Command child, MorphlineContext context)
@Deprecated protected AbstractParser(com.typesafe.config.Config config, Command parent, Command child, MorphlineContext context)
protected void addSupportedMimeType(String mediaType)
protected boolean doProcess(Record record)
AbstractCommand
doProcess
in class AbstractCommand
protected abstract boolean doProcess(Record record, InputStream stream) throws IOException
IOException
protected void incrementNumRecords()
public static void removeAttachments(Record outputRecord)
Copyright © 2013–2015. All rights reserved.