Interface IBslLoadingPreprocessor

All Known Implementing Classes:
BslPreprocessingService

public interface IBslLoadingPreprocessor
BSL preprocessing interface. Implemented by com.e1c.langtool.v8.dt.bsl.i18n.loader plugin and can be retrieved via OSGI services.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isFileCanBeProcessed(org.eclipse.core.resources.IFile file)
    Check if file can be processed by IBslLoadingPreprocessor implementation or not.
    processFile(org.eclipse.core.resources.IFile file, boolean force, InputStream originalStream)
    Do actual processing of BSL file.
  • Method Details

    • isFileCanBeProcessed

      boolean isFileCanBeProcessed(org.eclipse.core.resources.IFile file)
      Check if file can be processed by IBslLoadingPreprocessor implementation or not. Return true if this file can be processed by IBslLoadingPreprocessor implementation, false otherwise.
      Parameters:
      file - File to be checked.
      Returns:
      true if this file can be processed by this IBslLoadingPreprocessor implementation, false otherwise.
    • processFile

      InputStream processFile(org.eclipse.core.resources.IFile file, boolean force, InputStream originalStream)
      Do actual processing of BSL file. Will return InputStream with processed file content. Can return originalStream if no processing required.
      Parameters:
      file - BSL file to be processed.
      force -
      originalStream - InputStream with original content of BSL file.
      Returns:
      InputStream with preprocessed BSL file content. If no processing required originalStream can be returned.