public URIConverter getURIConverter() { if (uriConverter == null) { uriConverter = new ExtensibleURIConverterImpl(); } return uriConverter; }
public InputStream createInputStream(URI uri) throws IOException { return createInputStream(uri, null); }
public OutputStream createOutputStream(URI uri) throws IOException { return createOutputStream(uri, null); }
/** * Creates an instance. */ public ExtensibleURIConverterImpl(Collection<URIHandler> uriHandlers, Collection<ContentHandler> contentHandlers) { getURIHandlers().addAll(uriHandlers); getContentHandlers().addAll(contentHandlers); }
public Map<String, ?> contentDescription(URI uri, Map<?, ?> options) throws IOException { URI normalizedURI = normalize(uri); return getURIHandler(normalizedURI).contentDescription(normalizedURI, new OptionsMap(OPTION_URI_CONVERTER, this, options)); }
String query = uri.query(); URI trimmedURI = uri.trimFragment().trimQuery(); URI result = getInternalURIMap().getURI(trimmedURI); String scheme = result.scheme(); if (scheme == null) return normalize(result);
@Override public URI normalize(URI uri) { if (ClasspathUriUtil.isClasspathUri(uri)) { URI result = XtextResourceSet.this.resolveClasspathURI(uri); if (ClasspathUriUtil.isClasspathUri(result)) throw new ClasspathUriResolutionException(result); result = super.normalize(result); return result; } return super.normalize(uri); }
public Map<URI, URI> getURIMap() { return getInternalURIMap(); }
public boolean exists(URI uri, Map<?, ?> options) { URI normalizedURI = normalize(uri); return getURIHandler(normalizedURI).exists(normalizedURI, new OptionsMap(OPTION_URI_CONVERTER, this, options)); }
String query = uri.query(); URI trimmedURI = uri.trimFragment().trimQuery(); URI result = getInternalURIMap().getURI(trimmedURI); String scheme = result.scheme(); if (scheme == null) return normalize(result);
/** * Creates an instance. */ public ExtensibleURIConverterImpl(Collection<URIHandler> uriHandlers, Collection<ContentHandler> contentHandlers) { getURIHandlers().addAll(uriHandlers); getContentHandlers().addAll(contentHandlers); }
URI normalizedUri = super.normalize(uri); if (normalizedUri.equals(uri))
public Map<URI, URI> getURIMap() { return getInternalURIMap(); }
/** * Returns the default URI converter that's used when there is no resource set. * @return the default URI converter. * @see #getURIConverter */ protected static URIConverter getDefaultURIConverter() { if (defaultURIConverter == null) { defaultURIConverter = new ExtensibleURIConverterImpl(); } return defaultURIConverter; }
public Map<String, ?> getAttributes(URI uri, Map<?, ?> options) { URI normalizedURI = normalize(uri); return getURIHandler(normalizedURI).getAttributes(normalizedURI, new OptionsMap(OPTION_URI_CONVERTER, this, options)); }
public InputStream createInputStream(URI uri) throws IOException { return createInputStream(uri, null); }
/** * Returns the internal version of the URI map. * @return the internal version of the URI map. * @deprecated since 2.4; there should be no need to call this method directly so use {@link #getURIMap()} instead. */ @Override @Deprecated protected URIMap getInternalURIMap() { return (URIMap)super.getInternalURIMap(); } }
public OutputStream createOutputStream(URI uri) throws IOException { return createOutputStream(uri, null); }
public URIConverter getURIConverter() { if (uriConverter == null) { uriConverter = new ExtensibleURIConverterImpl(); } return uriConverter; }
public Map<String, ?> getAttributes(URI uri, Map<?, ?> options) { URI normalizedURI = normalize(uri); return getURIHandler(normalizedURI).getAttributes(normalizedURI, new OptionsMap(OPTION_URI_CONVERTER, this, options)); }