org.objectweb.dsrg.sofa.repository.core
Class SofaURIConverterImpl
java.lang.Object
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 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 |
Fields inherited from interface org.eclipse.emf.ecore.resource.URIConverter |
URI_MAP |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SofaURIConverterImpl
public SofaURIConverterImpl(RepositoryConfiguration rc)
- Standard constructor.
- Parameters:
repConnection
- Connection parameters to remote server (host and port).
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: