Class PayloadRouter

java.lang.Object
org.apache.tika.pipes.core.fetcher.PayloadRouter

public final class PayloadRouter extends Object
Decides how a document reaches the forked worker: as bytes on the wire, or as a file the worker opens itself.

Every host that hands pipes an already-open stream needs this same decision, so it lives here rather than in each of them -- three copies would be three thresholds that drift apart.