org.openstreetmap.osmosis.core.task.v0_5
Interface MultiSource

All Superinterfaces:
Task
All Known Subinterfaces:
SinkMultiSource
All Known Implementing Classes:
EntityTee

public interface MultiSource
extends Task

Defines the interface for tasks producing multiple streams of OSM data.

Author:
Brett Henderson

Method Summary
 Source getSource(int index)
          Retrieves a specific source that can then have a sink attached.
 int getSourceCount()
          Indicates the number of sources that the task provides.
 

Method Detail

getSource

Source getSource(int index)
Retrieves a specific source that can then have a sink attached.

Parameters:
index - The index of the source to retrieve.
Returns:
The requested index.

getSourceCount

int getSourceCount()
Indicates the number of sources that the task provides.

Returns:
The number of sources.