org.objectweb.dsrg.sofa.repository.core
Class SofaURIConverterImpl

java.lang.Object
  extended by org.objectweb.dsrg.sofa.repository.core.SofaURIConverterImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.resource.URIConverter

public class SofaURIConverterImpl
extends java.lang.Object
implements org.eclipse.emf.ecore.resource.URIConverter

Internal class used by EMF for opening and closing streams for Resources. Do not use it anywhere in client code. For details see EMF documentation. This implementation uses SofaInputStream and SofaOutputStream.

See Also:
SofaInputStream, SofaOutputStream

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.URIConverter
org.eclipse.emf.ecore.resource.URIConverter.Cipher, org.eclipse.emf.ecore.resource.URIConverter.Readable, org.eclipse.emf.ecore.resource.URIConverter.ReadableInputStream, org.eclipse.emf.ecore.resource.URIConverter.Writeable, org.eclipse.emf.ecore.resource.URIConverter.WriteableOutputStream
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.ecore.resource.URIConverter
URI_MAP
 
Constructor Summary
SofaURIConverterImpl(RepositoryConfiguration rc)
          Standard constructor.
 
Method Summary
 java.io.InputStream createInputStream(org.eclipse.emf.common.util.URI uri)
           
 java.io.OutputStream createOutputStream(org.eclipse.emf.common.util.URI uri)
           
 RepositoryConfiguration getRepositoryConfiguration()
          Obtains RepositoryConfiguration.
 java.util.Map getURIMap()
          Not used by this implementation.
 org.eclipse.emf.common.util.URI normalize(org.eclipse.emf.common.util.URI uri)
          Not used by this implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SofaURIConverterImpl

public SofaURIConverterImpl(RepositoryConfiguration rc)
Standard constructor.

Parameters:
repConnection - Connection parameters to remote server (host and port).
Method Detail

createInputStream

public java.io.InputStream createInputStream(org.eclipse.emf.common.util.URI uri)
                                      throws java.io.IOException
Specified by:
createInputStream in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException

createOutputStream

public java.io.OutputStream createOutputStream(org.eclipse.emf.common.util.URI uri)
                                        throws java.io.IOException
Specified by:
createOutputStream in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException

getURIMap

public java.util.Map getURIMap()
Not used by this implementation.

Specified by:
getURIMap in interface org.eclipse.emf.ecore.resource.URIConverter

normalize

public org.eclipse.emf.common.util.URI normalize(org.eclipse.emf.common.util.URI uri)
Not used by this implementation.

Specified by:
normalize in interface org.eclipse.emf.ecore.resource.URIConverter

getRepositoryConfiguration

public RepositoryConfiguration getRepositoryConfiguration()
Obtains RepositoryConfiguration. This is necessary for SofaInputStream and SofaOutputStream to get connection informations of RepositoryServer.

Returns: