Package org.jcsp.util.filter
Interface Filter
-
- All Known Implementing Classes:
DataSerializationFilter,DeserializeChannelFilter,DeserializeChannelFilter,LoopbackLink.LoopbackSerializationFilter,PoisonFilter
public interface FilterInterface for channel plug-ins that define filtering operations - transformations on the data as it is read or written. A channel (or channel end) that supports filtering will implement theReadFilteredorWriteFilteredinterface which allows instances ofFilterto be installed or removed from the channel.- See Also:
FilteredChannel,FilteredChannelEnd,ReadFiltered,WriteFiltered
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectfilter(java.lang.Object obj)Applies the filter operation.
-
-
-
Method Detail
-
filter
java.lang.Object filter(java.lang.Object obj)
Applies the filter operation. The object given can be modified and returned or another object substituted in its place.- Parameters:
obj- the original object in the channel communication.- Returns:
- the modified/substituted object after filtration.
-
-