public class DelegatingFieldParser extends Object implements FieldParser<ParsedField>
| Constructor and Description |
|---|
DelegatingFieldParser(FieldParser<? extends ParsedField> defaultParser) |
| Modifier and Type | Method and Description |
|---|---|
FieldParser<? extends ParsedField> |
getParser(String name) |
ParsedField |
parse(Field rawField,
DecodeMonitor monitor)
Parses raw (unstructured) field and converts it into a structured field.
|
void |
setFieldParser(String name,
FieldParser<? extends ParsedField> parser)
Sets the parser used for the field named
name. |
public DelegatingFieldParser(FieldParser<? extends ParsedField> defaultParser)
public void setFieldParser(String name, FieldParser<? extends ParsedField> parser)
name.name - the name of the fieldparser - the parser for fields named namepublic FieldParser<? extends ParsedField> getParser(String name)
public ParsedField parse(Field rawField, DecodeMonitor monitor)
FieldParserparse in interface FieldParser<ParsedField>Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.