celeboss.HTMLload
Class CelebParser

java.lang.Object
  extended byceleboss.HTMLload.HTMLParser
      extended byceleboss.HTMLload.CelebParser

public class CelebParser
extends HTMLParser

This class uses a HTMLDataSource to load details about a specific celebrity.

Version:
1.0
Author:
bevans

Constructor Summary
CelebParser(java.io.InputStream in)
          Creates a parser that will extract information from a HTML file representing the Celebrity details.
 
Method Summary
 java.util.Collection parseDetails(Portfolio owner, Celebrity target)
          This method parses the incoming InputStream that is a HTML data containing Celebrity details.
 
Methods inherited from class celeboss.HTMLload.HTMLParser
close, convertMoney, convertPerc, extractTitledValue, getChar, getMillions, getNextValue, setReturnTags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CelebParser

public CelebParser(java.io.InputStream in)
Creates a parser that will extract information from a HTML file representing the Celebrity details.

Parameters:
in - Input stream containig raw HTML.
Method Detail

parseDetails

public java.util.Collection parseDetails(Portfolio owner,
                                         Celebrity target)
                                  throws java.io.IOException
This method parses the incoming InputStream that is a HTML data containing Celebrity details.

Parameters:
owner - The portfolil that owner the shares; could be null.
target - Celebrity to update.
Returns:
List of shares owned by target portfolio
Throws:
java.io.IOException - Some problem accessing the remote source.