本文整理了Java中org.eclipse.emf.ecore.resource.impl.ResourceImpl.useZip
方法的一些代码示例,展示了ResourceImpl.useZip
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceImpl.useZip
方法的具体详情如下:
包路径:org.eclipse.emf.ecore.resource.impl.ResourceImpl
类名称:ResourceImpl
方法名:useZip
[英]Returns whether contents will be compressed. This implementation returns false
. When this returns true
, #save(OutputStream,Map) and #load(InputStream,Map)will zip compress and decompress contents.
[中]返回内容是否将被压缩。此实现返回false
。当返回true
时,#save(OutputStream,Map)和#load(InputStream,Map)将压缩和解压缩内容。
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* Returns the input stream for the zip entry, or the original input stream, as appropriate.
*/
private InputStream getUnderlyingInputStream(InputStream inputStream, Map<?, ?> options) throws IOException
{
if (useZip() || (options != null && Boolean.TRUE.equals(options.get(Resource.OPTION_ZIP))))
{
ZipInputStream zipInputStream = new ZipInputStream(inputStream);
while (zipInputStream.available() != 0)
{
ZipEntry zipEntry = zipInputStream.getNextEntry();
if (isContentZipEntry(zipEntry))
{
return zipInputStream;
}
}
}
return inputStream;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* Returns the input stream for the zip entry, or the original input stream, as appropriate.
*/
private InputStream getUnderlyingInputStream(InputStream inputStream, Map<?, ?> options) throws IOException
{
if (useZip() || (options != null && Boolean.TRUE.equals(options.get(Resource.OPTION_ZIP))))
{
ZipInputStream zipInputStream = new ZipInputStream(inputStream);
while (zipInputStream.available() != 0)
{
ZipEntry zipEntry = zipInputStream.getNextEntry();
if (isContentZipEntry(zipEntry))
{
return zipInputStream;
}
}
}
return inputStream;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
if (useZip() || (options != null && Boolean.TRUE.equals(options.get(Resource.OPTION_ZIP))))
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
if (useZip() || (options != null && Boolean.TRUE.equals(options.get(Resource.OPTION_ZIP))))
内容来源于网络,如有侵权,请联系作者删除!