Example usage for org.apache.commons.pipeline Pipeline getSourceFeeder

List of usage examples for org.apache.commons.pipeline Pipeline getSourceFeeder

Introduction

In this page you can find the example usage for org.apache.commons.pipeline Pipeline getSourceFeeder.

Prototype

public Feeder getSourceFeeder() 

Source Link

Document

Returns a feeder for the first stage if the rendering is not empty

Usage

From source file:edu.scripps.fl.pipeline.PipelineUtils.java

public Pipeline createPipeline(URL url, Object feed) throws PipelineCreationException {
    DigesterPipelineFactory factory = new DigesterPipelineFactory(url);
    Pipeline pipeline = factory.createPipeline();
    for (StageDriver driver : pipeline.getStageDrivers())
        ((AbstractStageDriver) driver).setFaultTolerance(FaultTolerance.CHECKED);
    pipeline.getSourceFeeder().feed(feed);
    return pipeline;
}