|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.change.v0_6.ChangeApplier
public class ChangeApplier
Applies a change set to an input source and produces an updated data set.
Constructor Summary | |
---|---|
ChangeApplier(int inputBufferCapacity)
Creates a new instance. |
Method Summary | |
---|---|
ChangeSink |
getChangeSink(int instance)
Obtains one of the change sinks exposed by the task. |
int |
getChangeSinkCount()
This implementation always returns 1. |
Sink |
getSink(int instance)
Obtains one of the sinks exposed by the task. |
int |
getSinkCount()
This implementation always returns 1. |
void |
run()
Processes the input sources and sends the updated data stream to the sink. |
void |
setSink(Sink sink)
Sets the osm sink to send data to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeApplier(int inputBufferCapacity)
inputBufferCapacity
- The size of the buffers to use for input sources.Method Detail |
---|
public Sink getSink(int instance)
getSink
in interface MultiSink
instance
- The index of the sink to be returned.
public int getSinkCount()
getSinkCount
in interface MultiSink
public ChangeSink getChangeSink(int instance)
getChangeSink
in interface MultiChangeSink
instance
- The index of the change sink to be returned.
public int getChangeSinkCount()
getChangeSinkCount
in interface MultiChangeSink
public void setSink(Sink sink)
setSink
in interface Source
sink
- The sink for receiving all produced data.public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |