Interface IBslResourceExtension


  • public interface IBslResourceExtension
    Resource extension logic API for the client contribution
    • 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 be null
        inputStream - The original input stream. May not be null
        options - The loadding options. May be null
        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 be null
        inputStream - The original input stream. May not be null
        Returns:
        The replaced stream if necessary. Otherwise should return the original stream. Never null