com.partnersoft.maps.translator
Class MapDataFilter

java.lang.Object
  extended by com.partnersoft.maps.translator.MapDataCollector
      extended by com.partnersoft.maps.translator.MapDataFilter
Direct Known Subclasses:
FilterByGraphicType, LoggingFilter, MapDataClassifier, MapDataCuller, MapDataIndexer, MapDataReducer, MapDataTransformer

public abstract class MapDataFilter
extends MapDataCollector

Any sink for map data in the translator.

Author:
Paul Reavis Copyright 2003-2005 Partner Software, Inc.

Field Summary
protected  MapDataCollector nextCollector
           
 
Fields inherited from class com.partnersoft.maps.translator.MapDataCollector
name, pipeline
 
Constructor Summary
MapDataFilter(java.lang.String name, TranslationPipeline pipeline)
           
MapDataFilter(java.lang.String name, TranslationPipeline pipeline, MapDataCollector nextCollector)
           
 
Method Summary
abstract  void collect(MapDataGraphic graphic)
           
 void discard(MapDataGraphic graphic)
          Discards the graphic.
 void flush()
          Optional; flushes data through.
 MapDataCollector getNextCollector()
           
 void pass(MapDataGraphic graphic)
          Passes the (possibly modified or new) graphic to the next stage in the pipeline.
 void setNextCollector(MapDataCollector newCollector)
           
 
Methods inherited from class com.partnersoft.maps.translator.MapDataCollector
close, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextCollector

protected MapDataCollector nextCollector
Constructor Detail

MapDataFilter

public MapDataFilter(java.lang.String name,
                     TranslationPipeline pipeline,
                     MapDataCollector nextCollector)

MapDataFilter

public MapDataFilter(java.lang.String name,
                     TranslationPipeline pipeline)
Method Detail

collect

public abstract void collect(MapDataGraphic graphic)
                      throws java.io.IOException
Specified by:
collect in class MapDataCollector
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Optional; flushes data through.

Throws:
java.io.IOException

pass

public void pass(MapDataGraphic graphic)
          throws java.io.IOException
Passes the (possibly modified or new) graphic to the next stage in the pipeline.

Throws:
java.io.IOException

discard

public void discard(MapDataGraphic graphic)
             throws java.io.IOException
Discards the graphic. May log it as discarded.

Throws:
java.io.IOException

getNextCollector

public MapDataCollector getNextCollector()

setNextCollector

public void setNextCollector(MapDataCollector newCollector)