org.springframework.batch.item.file.mapping
Class PassThroughFieldSetMapper
java.lang.Object
org.springframework.batch.item.file.mapping.PassThroughFieldSetMapper
- All Implemented Interfaces:
- FieldSetCreator, FieldSetMapper
public class PassThroughFieldSetMapper
- extends Object
- implements FieldSetMapper, FieldSetCreator
Pass through FieldSetMapper useful for passing a FieldSet
back directly rather than a mapped object.
- Author:
- Lucas Ward
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassThroughFieldSetMapper
public PassThroughFieldSetMapper()
mapLine
public Object mapLine(FieldSet fs)
- Description copied from interface:
FieldSetMapper
- Method used to map data obtained from a
FieldSet into an object.
- Specified by:
mapLine in interface FieldSetMapper
- Parameters:
fs - the FieldSet to map
mapItem
public FieldSet mapItem(Object data)
- If the input is a
FieldSet pass it to the caller. Otherwise
convert to a String with toString() and convert it to a single field
FieldSet.
- Specified by:
mapItem in interface FieldSetCreator
- Parameters:
data - an Object to convert.
- Returns:
- a
FieldSet created from the input. - See Also:
FieldSetCreator.mapItem(java.lang.Object)
Copyright © 2009 SpringSource. All Rights Reserved.