public class FrameDecoder extends AbstractDecoder implements DataProcessor
decode()
. When using this decoder, make sure that the AcousticScorer
used by the
SearchManager
can access some buffered Data
s.AUTO_ALLOCATE, FIRE_NON_FINAL_RESULTS, logger, PROP_RESULT_LISTENERS, PROP_SEARCH_MANAGER, resultListeners, searchManager
Constructor and Description |
---|
FrameDecoder() |
FrameDecoder(SearchManager searchManager,
boolean fireNonFinalResults,
boolean autoAllocate,
java.util.List<ResultListener> listeners) |
Modifier and Type | Method and Description |
---|---|
Result |
decode(java.lang.String referenceText)
Decode a single frame.
|
Data |
getData()
Returns the processed Data output.
|
DataProcessor |
getPredecessor()
Returns the predecessor DataProcessor.
|
void |
initialize()
Initializes this DataProcessor.
|
void |
setPredecessor(DataProcessor predecessor)
Sets the predecessor DataProcessor.
|
addResultListener, allocate, deallocate, fireResultListeners, newProperties, removeResultListener, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
newProperties
public FrameDecoder(SearchManager searchManager, boolean fireNonFinalResults, boolean autoAllocate, java.util.List<ResultListener> listeners)
public FrameDecoder()
public Result decode(java.lang.String referenceText)
decode
in class AbstractDecoder
referenceText
- the reference text (or null)public Data getData() throws DataProcessingException
DataProcessor
getData
in interface DataProcessor
DataProcessingException
- if a data processor error occurspublic DataProcessor getPredecessor()
DataProcessor
getPredecessor
in interface DataProcessor
public void setPredecessor(DataProcessor predecessor)
DataProcessor
setPredecessor
in interface DataProcessor
predecessor
- the new predecessor of this DataProcessorpublic void initialize()
DataProcessor
initialize
in interface DataProcessor