com.voidsearch.voidbase.apps.feedq.resource
Class XMLFeedResource

java.lang.Object
  extended by com.voidsearch.voidbase.apps.feedq.resource.XMLFeedResource
All Implemented Interfaces:
FeedResource
Direct Known Subclasses:
CommonAtomFeed

public abstract class XMLFeedResource
extends java.lang.Object
implements FeedResource


Constructor Summary
protected XMLFeedResource(byte[] content)
           
protected XMLFeedResource(byte[] content, java.lang.String entryDelimiter)
           
 
Method Summary
 void deserialize(byte[] content)
          deserialize via simple stax pull loop
 java.util.LinkedList<ResourceEntry> getDelta(FeedResource resource)
          get delta from other resource using default metric
 java.util.LinkedList<ResourceEntry> getDelta(FeedResource resource, ResourceMetric metric)
          get delta from given resource using given metric
 java.util.LinkedList<ResourceEntry> getEntries()
          return list of entries
protected  void setDelimiter(java.lang.String delimiter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFeedResource

protected XMLFeedResource(byte[] content)

XMLFeedResource

protected XMLFeedResource(byte[] content,
                          java.lang.String entryDelimiter)
Method Detail

setDelimiter

protected void setDelimiter(java.lang.String delimiter)

deserialize

public void deserialize(byte[] content)
                 throws ResourceDeserializationException
deserialize via simple stax pull loop

Specified by:
deserialize in interface FeedResource
Parameters:
content -
Throws:
ResourceDeserializationException

getEntries

public java.util.LinkedList<ResourceEntry> getEntries()
Description copied from interface: FeedResource
return list of entries

Specified by:
getEntries in interface FeedResource
Returns:

getDelta

public java.util.LinkedList<ResourceEntry> getDelta(FeedResource resource)
Description copied from interface: FeedResource
get delta from other resource using default metric

Specified by:
getDelta in interface FeedResource
Returns:

getDelta

public java.util.LinkedList<ResourceEntry> getDelta(FeedResource resource,
                                                    ResourceMetric metric)
Description copied from interface: FeedResource
get delta from given resource using given metric

Specified by:
getDelta in interface FeedResource
Returns:


Copyright © 2009. All Rights Reserved.