org.apache.oodt.pcs.input
Class PGEConfigFileReader

java.lang.Object
  extended by org.apache.oodt.pcs.input.PGEConfigFileReader

public class PGEConfigFileReader
extends Object

A Reader for reading the constructs defined in a PGEConfigurationFile. The constructs are read and a new PGEConfigurationFile object is constructed and returned.

Version:
$Revision$
Author:
mattmann

Constructor Summary
PGEConfigFileReader()
           Default Constructor
 
Method Summary
 PGEConfigurationFile read(InputStream is)
           Reads a PGEConfigurationFile from the specified is InputStream.
 PGEConfigurationFile read(URL url)
           Reads the PGE Configuration file from the given url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGEConfigFileReader

public PGEConfigFileReader()

Default Constructor

Method Detail

read

public PGEConfigurationFile read(URL url)
                          throws PGEConfigFileException

Reads the PGE Configuration file from the given url.

Parameters:
url - The URL pointer to the pge configuration file.
Returns:
A new PGEConfigurationFile object, created from the specified URL.
Throws:
PGEConfigFileException - If there is an error reading the url.

read

public PGEConfigurationFile read(InputStream is)
                          throws PGEConfigFileException

Reads a PGEConfigurationFile from the specified is InputStream.

Parameters:
is - The InputStream to read the PGEConfigurationFile from.
Returns:
A new PGEConfigurationFile, created from the specified InputStream.
Throws:
PGEConfigFileException - If any error occurs.


Copyright © 1999-2013
Apache OODT. All Rights Reserved.