oracle.panama.feed
Interface FeedDataParser

All Superinterfaces:
FeedComponent, FeedObservable

public interface FeedDataParser
extends FeedObservable

Takes a input stream and parses it into a name-value Map (Hashtable). Note that some data sources (such as the B2B data source) already returns data as hash tables; they will also implement this interface


Method Summary
TypeMethod
 void addDataListener(FeedDataListener listener)
          Add a new listener to this data source.
 void dataArrived(java.io.InputStream stream)
          called by DataReader when new data is available on the input stream
 void notifyAll(java.util.Map data)
          Broadcast to all listeners
 void removeDataListener(FeedDataListener listener)
          Remove a active listener from this data source
 
Methods inherited from interface oracle.panama.feed.FeedComponent
getArgumentDefs, initialize
 

Method Detail

addDataListener

public void addDataListener(FeedDataListener listener)
Add a new listener to this data source.
Specified by:
addDataListener in interface FeedObservable

removeDataListener

public void removeDataListener(FeedDataListener listener)
Remove a active listener from this data source
Specified by:
removeDataListener in interface FeedObservable

notifyAll

public void notifyAll(java.util.Map data)
Broadcast to all listeners
Specified by:
notifyAll in interface FeedObservable

dataArrived

public void dataArrived(java.io.InputStream stream)
                 throws FeedException
called by DataReader when new data is available on the input stream
Parameters:
inputStream: - the input stream to read from. This stream will be closed after this function is invoked; the client should not keep a pointer to it.
Throws:
FeedException - on fatal data reading/parsing errors