org.eclipse.datatools.enablement.oda.xml.util
Class XMLSourceFromPath

java.lang.Object
  extended by org.eclipse.datatools.enablement.oda.xml.util.XMLSourceFromPath
All Implemented Interfaces:
IXMLSource

public class XMLSourceFromPath
extends java.lang.Object
implements IXMLSource


Constructor Summary
XMLSourceFromPath(java.lang.String path)
           
XMLSourceFromPath(java.lang.String path, java.lang.String encoding)
           
 
Method Summary
 java.lang.String getEncoding()
           
 java.io.InputStream openInputStream()
           
 void release()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSourceFromPath

public XMLSourceFromPath(java.lang.String path)
                  throws OdaException
Throws:
OdaException

XMLSourceFromPath

public XMLSourceFromPath(java.lang.String path,
                         java.lang.String encoding)
                  throws OdaException
Throws:
OdaException
Method Detail

openInputStream

public java.io.InputStream openInputStream()
                                    throws OdaException
Specified by:
openInputStream in interface IXMLSource
Throws:
OdaException

release

public void release()
             throws OdaException
Specified by:
release in interface IXMLSource
Throws:
OdaException

getEncoding

public java.lang.String getEncoding()
Specified by:
getEncoding in interface IXMLSource