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:
committed by
Artem Bilan
parent
7ed79c864d
commit
51b52ea3a6
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user