public class PreprocessDecoder extends Object implements DataDecoder, Configurable
DataDecoder.Factory
Modifier and Type | Field and Description |
---|---|
static String |
BASE_DECODER |
static String |
VALUE_PRE_PROCESSING |
Constructor and Description |
---|
PreprocessDecoder() |
Modifier and Type | Method and Description |
---|---|
Object |
decode(String data)
Decode the supplied String data into a new Object data instance.
|
DataDecoder |
getBaseDecoder() |
Properties |
getConfiguration()
Get the component configuration.
|
void |
setBaseDecoder(DataDecoder baseDecoder) |
void |
setConfiguration(Properties config)
Set the component configuration.
|
public static final String VALUE_PRE_PROCESSING
public static final String BASE_DECODER
public void setConfiguration(Properties config) throws SmooksException
Configurable
setConfiguration
in interface Configurable
config
- The component configuration properties.SmooksException
public Properties getConfiguration()
Configurable
getConfiguration
in interface Configurable
public void setBaseDecoder(DataDecoder baseDecoder)
public DataDecoder getBaseDecoder()
public Object decode(String data) throws DataDecodeException
DataDecoder
decode
in interface DataDecoder
data
- Data to be decoded.DataDecodeException
- Error decoding data.Copyright © 2020. All rights reserved.