org.eclipse.emf.ecore.resource.impl.ResourceImpl.getURIConverter()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中org.eclipse.emf.ecore.resource.impl.ResourceImpl.getURIConverter方法的一些代码示例,展示了ResourceImpl.getURIConverter的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceImpl.getURIConverter方法的具体详情如下:
包路径:org.eclipse.emf.ecore.resource.impl.ResourceImpl
类名称:ResourceImpl
方法名:getURIConverter

ResourceImpl.getURIConverter介绍

[英]Returns the URI converter. This typically gets the ResourceSet#getURIConverterfrom the #getResourceSet resource set, but it calls #getDefaultURIConverter when there is no containing resource set.
[中]返回URI转换器。这通常会从#getResourceSet资源集中获取资源集#GetUriConverter,但当没有包含资源集时,它会调用#getDefaultURIConverter。

代码示例

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

Map<String, ?> contentDescription = getURIConverter().contentDescription(uri, effectiveOptions);
lineDelimiter = (String)contentDescription.get(ContentHandler.LINE_DELIMITER_PROPERTY);
if (lineDelimiter != null)
URIConverter uriConverter = getURIConverter();
ExtensibleURIConverterImpl.OptionsMap effectiveOptions = new ExtensibleURIConverterImpl.OptionsMap(URIConverter.OPTION_RESPONSE, response, options, defaultSaveOptions);
OutputStream outputStream = uriConverter.createOutputStream(getURI(), effectiveOptions);

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

Map<String, ?> contentDescription = getURIConverter().contentDescription(uri, effectiveOptions);
lineDelimiter = (String)contentDescription.get(ContentHandler.LINE_DELIMITER_PROPERTY);
if (lineDelimiter != null)
URIConverter uriConverter = getURIConverter();
ExtensibleURIConverterImpl.OptionsMap effectiveOptions = new ExtensibleURIConverterImpl.OptionsMap(URIConverter.OPTION_RESPONSE, response, options, defaultSaveOptions);
OutputStream outputStream = uriConverter.createOutputStream(getURI(), effectiveOptions);

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

URIConverter uriConverter = getURIConverter();
OutputStream temporaryFileOutputStream = uriConverter.createOutputStream(temporaryFileURI, null);
try

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

URIConverter uriConverter = getURIConverter();
OutputStream temporaryFileOutputStream = uriConverter.createOutputStream(temporaryFileURI, null);
try

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

protected void saveOnlyIfChangedWithMemoryBuffer(Map<?, ?> options) throws IOException
 URIConverter uriConverter = getURIConverter();
 class MyByteArrayOutputStream extends ByteArrayOutputStream

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

protected void saveOnlyIfChangedWithMemoryBuffer(Map<?, ?> options) throws IOException
 URIConverter uriConverter = getURIConverter();
 class MyByteArrayOutputStream extends ByteArrayOutputStream

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

URIConverter uriConverter = getURIConverter();
Map<?, ?> response = options == null ? null : (Map<?, ?>)options.get(URIConverter.OPTION_RESPONSE);
if (response == null)

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

URIConverter uriConverter = getURIConverter();
Map<?, ?> response = options == null ? null : (Map<?, ?>)options.get(URIConverter.OPTION_RESPONSE);
if (response == null)

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

public void delete(Map<?, ?> options) throws IOException
{
 getURIConverter().delete(getURI(), mergeMaps(options, defaultDeleteOptions));
 unload();
 ResourceSet resourceSet = getResourceSet();
 if (resourceSet != null)
 {
  resourceSet.getResources().remove(this);
 }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

public void delete(Map<?, ?> options) throws IOException
{
 getURIConverter().delete(getURI(), mergeMaps(options, defaultDeleteOptions));
 unload();
 ResourceSet resourceSet = getResourceSet();
 if (resourceSet != null)
 {
  resourceSet.getResources().remove(this);
 }
}

相关文章

微信公众号

最新文章

更多