Class ClassPathUriHandler

  • All Implemented Interfaces:
    org.eclipse.emf.ecore.resource.URIHandler

    public class ClassPathUriHandler
    extends org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
    Реализация URIHandler, обрабатывающая URI, относящиеся к схеме 'classpath' и ищущая ресурсы в classpath.
    • Constructor Detail

      • ClassPathUriHandler

        public ClassPathUriHandler()
    • Method Detail

      • canHandle

        public boolean canHandle​(org.eclipse.emf.common.util.URI uri)
        Specified by:
        canHandle in interface org.eclipse.emf.ecore.resource.URIHandler
        Overrides:
        canHandle in class org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
      • createInputStream

        public InputStream createInputStream​(org.eclipse.emf.common.util.URI uri,
                                             Map<?,​?> options)
                                      throws IOException
        Specified by:
        createInputStream in interface org.eclipse.emf.ecore.resource.URIHandler
        Overrides:
        createInputStream in class org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
        Throws:
        IOException
      • createOutputStream

        public OutputStream createOutputStream​(org.eclipse.emf.common.util.URI uri,
                                               Map<?,​?> options)
                                        throws IOException
        Specified by:
        createOutputStream in interface org.eclipse.emf.ecore.resource.URIHandler
        Overrides:
        createOutputStream in class org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
        Throws:
        IOException
      • delete

        public void delete​(org.eclipse.emf.common.util.URI uri,
                           Map<?,​?> options)
                    throws IOException
        Specified by:
        delete in interface org.eclipse.emf.ecore.resource.URIHandler
        Overrides:
        delete in class org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
        Throws:
        IOException
      • exists

        public boolean exists​(org.eclipse.emf.common.util.URI uri,
                              Map<?,​?> options)
        Specified by:
        exists in interface org.eclipse.emf.ecore.resource.URIHandler
        Overrides:
        exists in class org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
      • getClassLoader

        protected ClassLoader getClassLoader()