Class BslPreprocessingService
java.lang.Object
com.e1c.langtool.v8.dt.bsl.i18n.internal.loader.BslPreprocessingService
- All Implemented Interfaces:
IBslLoadingPreprocessor
@LifecycleService(name="BslPreprocessingService")
public class BslPreprocessingService
extends Object
implements IBslLoadingPreprocessor
BSL preprocessing service implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisFileCanBeProcessed(org.eclipse.core.resources.IFile file) Check iffilecan be processed byIBslLoadingPreprocessorimplementation or not.voidlink()processFile(org.eclipse.core.resources.IFile file, boolean force, InputStream originalStream) Do actual processing of BSL file.
-
Constructor Details
-
BslPreprocessingService
public BslPreprocessingService()
-
-
Method Details
-
isFileCanBeProcessed
public boolean isFileCanBeProcessed(org.eclipse.core.resources.IFile file) Description copied from interface:IBslLoadingPreprocessorCheck iffilecan be processed byIBslLoadingPreprocessorimplementation or not. Returntrueif this file can be processed byIBslLoadingPreprocessorimplementation,falseotherwise.- Specified by:
isFileCanBeProcessedin interfaceIBslLoadingPreprocessor- Parameters:
file- File to be checked.- Returns:
trueif this file can be processed by thisIBslLoadingPreprocessorimplementation,falseotherwise.
-
link
-
processFile
public InputStream processFile(org.eclipse.core.resources.IFile file, boolean force, InputStream originalStream) Description copied from interface:IBslLoadingPreprocessorDo actual processing of BSL file. Will returnInputStreamwith processed file content. Can returnoriginalStreamif no processing required.- Specified by:
processFilein interfaceIBslLoadingPreprocessor- Parameters:
file- BSL file to be processed.originalStream-InputStreamwith original content of BSL file.- Returns:
InputStreamwith preprocessed BSL file content. If no processing requiredoriginalStreamcan be returned.
-