celeboss.HTMLload
Class PortfolioParser

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

public class PortfolioParser
extends HTMLParser

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

Version:
1.0
Author:
bevans

Constructor Summary
PortfolioParser(java.io.InputStream in)
          Creates a parser that will extract information from a HTML file representing the Portfolio details.
 
Method Summary
 java.util.Collection parseDetails(Portfolio target)
          This method parses the incoming InputStream that is a HTML data containing Portfolio 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

PortfolioParser

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

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

parseDetails

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

Parameters:
target - Portfolio to update.
Returns:
Collection of Issue number of owned Celebrities
Throws:
java.io.IOException - Some problem accessing the remote source.