OPEN - issue BATCH-349: ItemStreamAdapter isn't an Adapter
http://jira.springframework.org/browse/BATCH-349 Adapter -> Support (unless it was an Adapter)
This commit is contained in:
@@ -142,7 +142,7 @@ public class FlatFileItemWriter extends AbstractTransactionalIoSource implements
|
||||
*/
|
||||
public void write(Object data) throws Exception {
|
||||
FieldSet fieldSet = fieldSetUnmapper.unmapItem(data);
|
||||
getOutputState().write(lineAggregator.aggregate(fieldSet ) + LINE_SEPARATOR);
|
||||
getOutputState().write(lineAggregator.aggregate(fieldSet) + LINE_SEPARATOR);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -247,13 +247,6 @@ public class FlatFileItemWriter extends AbstractTransactionalIoSource implements
|
||||
long restartCount = 0;
|
||||
|
||||
boolean shouldDeleteIfExists = true;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public OutputState() {
|
||||
initializeBufferedWriter();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the byte offset position of the cursor in the output file as a
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
package org.springframework.batch.item.writer;
|
||||
|
||||
import org.springframework.batch.item.ItemWriter;
|
||||
import org.springframework.batch.item.stream.ItemStreamAdapter;
|
||||
import org.springframework.batch.item.stream.ItemStreamSupport;
|
||||
|
||||
/**
|
||||
* Base class for {@link ItemWriter} implementations.
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
public abstract class AbstractItemStreamItemWriter extends ItemStreamAdapter implements ItemWriter {
|
||||
public abstract class AbstractItemStreamItemWriter extends ItemStreamSupport implements ItemWriter {
|
||||
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import org.springframework.batch.item.ExecutionContext;
|
||||
import org.springframework.batch.item.ItemStream;
|
||||
import org.springframework.batch.item.ItemWriter;
|
||||
import org.springframework.batch.item.exception.StreamException;
|
||||
import org.springframework.batch.item.stream.ItemStreamAdapter;
|
||||
import org.springframework.batch.item.stream.ItemStreamSupport;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
@@ -49,7 +49,7 @@ public class DelegatingItemWriter implements ItemWriter, ItemStream, Initializin
|
||||
if (writer instanceof ItemStream) {
|
||||
this.stream = (ItemStream) writer;
|
||||
} else {
|
||||
this.stream = new ItemStreamAdapter();
|
||||
this.stream = new ItemStreamSupport();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user