REOPENED - BATCH-779: RFC: make FieldSetMapper and LineAggregator extend ItemProcessor

remove the "extends ItemProcessor" clauses
This commit is contained in:
robokaso
2008-10-09 11:03:46 +00:00
parent 3df72df1b1
commit 81513dbdc6
8 changed files with 14 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ public class AggregateItemFieldSetMapper<T> implements FieldSetMapper<AggregateI
* @return an {@link AggregateItem} that wraps the return value from the
* delegate
*/
public AggregateItem<T> process(FieldSet fieldSet) throws Exception {
public AggregateItem<T> process(FieldSet fieldSet) {
if (fieldSet.readString(0).equals(begin)) {
return AggregateItem.getHeader();

View File

@@ -26,7 +26,7 @@ public class CompositeCustomerUpdateLineTokenizer extends StepExecutionListenerS
/* (non-Javadoc)
* @see org.springframework.batch.item.file.transform.LineTokenizer#tokenize(java.lang.String)
*/
public FieldSet process(String line) throws Exception {
public FieldSet process(String line) {
if(line.charAt(0) == 'F'){
//line starts with F, so the footer tokenizer should tokenize it.