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 TypeMethodDescriptionbooleanisFileCanBeProcessed(org.eclipse.core.resources.IFile file) Check iffilecan be processed byIBslLoadingPreprocessorimplementation 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 iffilecan be processed byIBslLoadingPreprocessorimplementation or not. Returntrueif this file can be processed byIBslLoadingPreprocessorimplementation,falseotherwise.- Parameters:
file- File to be checked.- Returns:
trueif this file can be processed by thisIBslLoadingPreprocessorimplementation,falseotherwise.
-
processFile
InputStream processFile(org.eclipse.core.resources.IFile file, boolean force, InputStream originalStream) Do actual processing of BSL file. Will returnInputStreamwith processed file content. Can returnoriginalStreamif no processing required.- Parameters:
file- BSL file to be processed.force-originalStream-InputStreamwith original content of BSL file.- Returns:
InputStreamwith preprocessed BSL file content. If no processing requiredoriginalStreamcan be returned.
-