edu.cmu.sphinx.frontend.util
Class DataDumper

java.lang.Object
  extended by edu.cmu.sphinx.frontend.BaseDataProcessor
      extended by edu.cmu.sphinx.frontend.util.DataDumper
All Implemented Interfaces:
DataProcessor, Configurable

public class DataDumper
extends BaseDataProcessor

Dumps the data


Field Summary
static java.lang.String PROP_ENABLE
          The Sphinx property that specifies whether data dumping is enabled
static boolean PROP_ENABLE_DEFAULT
          The default value of PROP_ENABLE.
static java.lang.String PROP_OUTPUT_FORMAT
          The Sphinx property that specifies the format of the output.
static java.lang.String PROP_OUTPUT_FORMAT_DEFAULT
          The default value of PROP_OUTPUT_FORMAT.
static java.lang.String PROP_OUTPUT_SIGNALS
          The Sphinx property that enables the output of signals.
static boolean PROP_OUTPUT_SIGNALS_DEFAULT
          The default value of PROP_OUTPUT_SIGNALS.
 
Constructor Summary
DataDumper()
           
 
Method Summary
 Data getData()
          Reads and returns the next Data object from this DataProcessor, return null if there is no more audio data.
 void initialize()
          Constructs a DataDumper
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer, setPredecessor, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_ENABLE

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_ENABLE
The Sphinx property that specifies whether data dumping is enabled

See Also:
Constant Field Values

PROP_ENABLE_DEFAULT

public static final boolean PROP_ENABLE_DEFAULT
The default value of PROP_ENABLE.

See Also:
Constant Field Values

PROP_OUTPUT_FORMAT

@S4String(defaultValue="0.00000E00;-0.00000E00")
public static final java.lang.String PROP_OUTPUT_FORMAT
The Sphinx property that specifies the format of the output.

See Also:
Constant Field Values

PROP_OUTPUT_FORMAT_DEFAULT

public static final java.lang.String PROP_OUTPUT_FORMAT_DEFAULT
The default value of PROP_OUTPUT_FORMAT.

See Also:
Constant Field Values

PROP_OUTPUT_SIGNALS

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_OUTPUT_SIGNALS
The Sphinx property that enables the output of signals.

See Also:
Constant Field Values

PROP_OUTPUT_SIGNALS_DEFAULT

public static final boolean PROP_OUTPUT_SIGNALS_DEFAULT
The default value of PROP_OUTPUT_SIGNALS.

See Also:
Constant Field Values
Constructor Detail

DataDumper

public DataDumper()
Method Detail

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component needs to be reconfigured.

Specified by:
newProperties in interface Configurable
Overrides:
newProperties in class BaseDataProcessor
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

initialize

public void initialize()
Constructs a DataDumper

Specified by:
initialize in interface DataProcessor
Overrides:
initialize in class BaseDataProcessor

getData

public Data getData()
             throws DataProcessingException
Reads and returns the next Data object from this DataProcessor, return null if there is no more audio data.

Specified by:
getData in interface DataProcessor
Specified by:
getData in class BaseDataProcessor
Returns:
the next Data or null if none is available
Throws:
DataProcessingException - if there is a data processing error