diff --git a/src/main/java/org/culturegraph/mf/stream/pipe/Splitter.java b/src/main/java/org/culturegraph/mf/stream/pipe/Splitter.java index 029417f10..acae27abb 100644 --- a/src/main/java/org/culturegraph/mf/stream/pipe/Splitter.java +++ b/src/main/java/org/culturegraph/mf/stream/pipe/Splitter.java @@ -15,6 +15,7 @@ */ package org.culturegraph.mf.stream.pipe; +import java.io.Reader; import java.util.HashMap; import java.util.Map; @@ -47,6 +48,11 @@ public Splitter(final String morphDef) { metamorph.setReceiver(singleValue); } + public Splitter(final Reader morphDef) { + metamorph = new Metamorph(morphDef); + metamorph.setReceiver(singleValue); + } + public Splitter(final Metamorph metamorph) { this.metamorph = metamorph; metamorph.setReceiver(singleValue);