dekoh.portal.syndication.aggregator.core
Class SummarizingTransformer
java.lang.Object
dekoh.portal.syndication.aggregator.core.AggregatedItemTransformer.Adapter
dekoh.portal.syndication.aggregator.core.SummarizingTransformer
- All Implemented Interfaces:
- AggregatedItemTransformer
public class SummarizingTransformer
- extends AggregatedItemTransformer.Adapter
- implements AggregatedItemTransformer
SummarizingTransformer will trim the description and content of each feed Item if its
more than maxDescriptionChar.
- Since:
- Oct 21, 2007
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SummarizingTransformer
public SummarizingTransformer()
- Same as calling
SummarizingTransformer.SummarizingTransformer(int) with 100.
SummarizingTransformer
public SummarizingTransformer(int maxLength)
- Parameters:
maxLength - after which the desc, context of the feed-items will be trimmed.
transform
public boolean transform(AggregatedItemTransformer.TransformationContext context,
Item rssFeedItem)
- Specified by:
transform in interface AggregatedItemTransformer- Overrides:
transform in class AggregatedItemTransformer.Adapter
- Returns:
- always true
© 2009 Pramati Technologies - Dekoh - Portal for Developers