Interface IBslResourceExtension
-
public interface IBslResourceExtension
Resource extension logic API for the client contribution
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
replaceStreamIfNecessary(org.eclipse.core.resources.IFile file, InputStream inputStream)
Replaces the input stream if necessary.InputStream
replaceStreamIfNecessary(org.eclipse.emf.ecore.resource.Resource resource, InputStream inputStream, Map<?,?> options)
Replaces the resource input stream if necessary
-
-
-
Method Detail
-
replaceStreamIfNecessary
InputStream replaceStreamIfNecessary(org.eclipse.emf.ecore.resource.Resource resource, InputStream inputStream, Map<?,?> options)
Replaces the resource input stream if necessary- Parameters:
resource
- The target resource. May not benull
inputStream
- The original input stream. May not benull
options
- The loadding options. May benull
- Returns:
- The replaced stream if necessary. Otherwise should return the original stream. Never
null
-
replaceStreamIfNecessary
InputStream replaceStreamIfNecessary(org.eclipse.core.resources.IFile file, InputStream inputStream)
Replaces the input stream if necessary. This variant is used for non-resource file reading operations, like platform XML export- Parameters:
file
- The source file. May not benull
inputStream
- The original input stream. May not benull
- Returns:
- The replaced stream if necessary. Otherwise should return the original stream. Never
null
-
-