INT-3727: FileSplitter - add SOF/EOF Capability

JIRA: https://jira.spring.io/browse/INT-3727

Add a configuration option such that the `FileSplitter` can emit
Start/End messages when splitting.

Polishing according PR comments

Add toString to FileMarker
This commit is contained in:
Gary Russell
2015-06-05 18:42:12 -04:00
committed by Artem Bilan
parent 7ed79c864d
commit 51b52ea3a6
3 changed files with 114 additions and 10 deletions

View File

@@ -53,10 +53,7 @@ public final class FunctionIterator<T, V> implements Iterator<V> {
@Override
public V next() {
if (this.hasNext()) {
return this.function.apply(this.iterator.next());
}
throw new NoSuchElementException();
return this.function.apply(this.iterator.next());
}
}