org.eclipse.ercp.xml.io
Class IOSpecificCall

java.lang.Object
  extended by org.eclipse.ercp.xml.io.AbstractIOSpecificCall
      extended by org.eclipse.ercp.xml.io.IOSpecificCall

public class IOSpecificCall
extends AbstractIOSpecificCall

Implementation of AbstractIOSpecificCall against Core and Higher


Method Summary
static IOSpecificCall getDefault()
           
 java.io.Reader getReaderFromSystemID(java.lang.String systemID, java.lang.String encoding)
          Returns a Reader based on the parameter
 java.lang.String getSystemProperty(java.lang.String property)
          Returns a system property wrapped or not by a PrivilegedAction
 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, java.util.Hashtable table)
          Reads a property file and returns a corresponding Hashtable.
 java.util.Hashtable readPropertyFile(java.lang.String filename, java.util.Hashtable table)
          Reads a property file and returns a corresponding Hashtable.
 
Methods inherited from class org.eclipse.ercp.xml.io.AbstractIOSpecificCall
readPropertyFile, readPropertyFile, readPropertyFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static IOSpecificCall getDefault()

openFileInputStream

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

Specified by:
openFileInputStream in class AbstractIOSpecificCall
Throws:
java.io.IOException

readPropertyFile

public java.util.Hashtable readPropertyFile(java.lang.Class aClass,
                                            java.lang.String resource,
                                            java.util.Hashtable table)
Reads a property file and returns a corresponding Hashtable. If the properpyfile is not defined, returns null

Specified by:
readPropertyFile in class AbstractIOSpecificCall

readPropertyFile

public java.util.Hashtable readPropertyFile(java.lang.String filename,
                                            java.util.Hashtable table)
Reads a property file and returns a corresponding Hashtable. If the properpyfile is not defined, returns null

Specified by:
readPropertyFile in class AbstractIOSpecificCall

getSystemProperty

public java.lang.String getSystemProperty(java.lang.String property)
Description copied from class: AbstractIOSpecificCall
Returns a system property wrapped or not by a PrivilegedAction

Specified by:
getSystemProperty in class AbstractIOSpecificCall

getReaderFromSystemID

public java.io.Reader getReaderFromSystemID(java.lang.String systemID,
                                            java.lang.String encoding)
                                     throws java.io.IOException
Description copied from class: AbstractIOSpecificCall
Returns a Reader based on the parameter

Specified by:
getReaderFromSystemID in class AbstractIOSpecificCall
Parameters:
systemID - - URL referencing the resource
encoding - - Java encoding to use for the Reader
Throws:
java.io.IOException