Venice 0.751beta

nz.org.venice.portfolio
Class PortfolioReader

java.lang.Object
  extended bynz.org.venice.portfolio.PortfolioReader

public class PortfolioReader
extends java.lang.Object

This class parses portfolios written in XML format.

Author:
Andrew Leppard
See Also:
Portfolio, PortfolioWriter

Method Summary
static Portfolio read(java.io.InputStream stream)
          Read and parse the portfolio in XML format from the input stream and return the portfolio object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public static Portfolio read(java.io.InputStream stream)
                      throws java.io.IOException,
                             PortfolioParserException
Read and parse the portfolio in XML format from the input stream and return the portfolio object.

Parameters:
stream - the input stream containing the portfolio in XML format
Returns:
the portfolio
Throws:
java.io.IOException - if there was an I/O error reading from the stream.
PortfolioParserException - if there was an error parsing the portfolio.

Venice 0.751beta