org.eclipse.ercp.xml.io
Class AbstractIOSpecificCall

java.lang.Object
  extended by org.eclipse.ercp.xml.io.AbstractIOSpecificCall
Direct Known Subclasses:
IOSpecificCall

public abstract class AbstractIOSpecificCall
extends java.lang.Object

Defines a set of IO apis which are implemented differently depending on the targetted JCL


Constructor Summary
protected AbstractIOSpecificCall()
           
 
Method Summary
abstract  java.io.Reader getReaderFromSystemID(java.lang.String systemID, java.lang.String encoding)
          Returns a Reader based on the parameter
abstract  java.lang.String getSystemProperty(java.lang.String property)
          Returns a system property wrapped or not by a PrivilegedAction
abstract  java.io.InputStream openFileInputStream(java.lang.String filename)
          Constructs a new InputStream on the file named fileName.
 java.util.Hashtable readPropertyFile(java.lang.Class aClass, java.lang.String resource)
          Reads a property file and returns the corresponding Hashtable.
abstract  java.util.Hashtable readPropertyFile(java.lang.Class aClass, java.lang.String resource, java.util.Hashtable table)
           
 java.util.Hashtable readPropertyFile(java.io.InputStream is, java.util.Hashtable table)
          Reads a property file from an InputStream, Stores the couples key-values in the provide Hashtable and returns the resulting Hashtable.
 java.util.Hashtable readPropertyFile(java.lang.String filename)
          Reads a property file and returns the corresponding Hashtable.
abstract  java.util.Hashtable readPropertyFile(java.lang.String filename, java.util.Hashtable table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIOSpecificCall

protected AbstractIOSpecificCall()
Method Detail

openFileInputStream

public abstract java.io.InputStream openFileInputStream(java.lang.String filename)
                                                 throws java.io.IOException
Constructs a new InputStream on the file named fileName.

Throws:
java.io.IOException

getSystemProperty

public abstract java.lang.String getSystemProperty(java.lang.String property)
Returns a system property wrapped or not by a PrivilegedAction


getReaderFromSystemID

public abstract java.io.Reader getReaderFromSystemID(java.lang.String systemID,
                                                     java.lang.String encoding)
                                              throws java.io.IOException
Returns a Reader based on the parameter

Parameters:
systemID - - URL referencing the resource
encoding - - Java encoding to use for the Reader
Throws:
java.io.IOException

readPropertyFile

public java.util.Hashtable readPropertyFile(java.lang.String filename)
Reads a property file and returns the corresponding Hashtable.


readPropertyFile

public abstract java.util.Hashtable readPropertyFile(java.lang.String filename,
                                                     java.util.Hashtable table)

readPropertyFile

public java.util.Hashtable readPropertyFile(java.lang.Class aClass,
                                            java.lang.String resource)
Reads a property file and returns the corresponding Hashtable.


readPropertyFile

public abstract java.util.Hashtable readPropertyFile(java.lang.Class aClass,
                                                     java.lang.String resource,
                                                     java.util.Hashtable table)

readPropertyFile

public java.util.Hashtable readPropertyFile(java.io.InputStream is,
                                            java.util.Hashtable table)
Reads a property file from an InputStream, Stores the couples key-values in the provide Hashtable and returns the resulting Hashtable.