public void load( InputStream inputStream, Hashtable properties )
throws NPandayRepositoryException
{
NPandaySettingsXpp3Reader xpp3Reader = new NPandaySettingsXpp3Reader();
Reader reader = new InputStreamReader( inputStream );
NPandaySettings settings;
try
{
settings = xpp3Reader.read( reader );
}
catch( IOException e )
{
throw new NPandayRepositoryException( "NPANDAY-104-000: An error occurred while reading npanday-settings.xml", e );
}
catch ( XmlPullParserException e )
{
throw new NPandayRepositoryException( "NPANDAY-104-001: Could not read npanday-settings.xml", e );
}
vendors = settings.getVendors();
defaultSetup = settings.getDefaultSetup();
props = properties;
}