public interface FileTransformer
TCDLTransformProcessor
this allows for the transformation of files just before they are deployed.Modifier and Type | Method and Description |
---|---|
void |
setTargetLanguage(int languageId)
Set the target language as indicated by the deployer meta data.
|
File |
transform(String itemURI,
File sourceFile,
String charsetName,
File targetDirectory)
Deprecated.
|
File |
transform(String itemURI,
File sourceFile,
String charsetName,
File targetDirectory,
TransformerBinaryStorage binaryStorage)
Transforms item [itemURI] from [sourceFile] using [charsetName] into the targetDirectory, returning the
created File.
|
void setTargetLanguage(int languageId)
languageId
- target language for the transformation@Deprecated File transform(String itemURI, File sourceFile, String charsetName, File targetDirectory) throws ProcessingException
transform(String, File, String, File, TransformerBinaryStorage)
.itemURI
- uri of the item being transformedsourceFile
- source file to transformcharsetName
- encoding of the source and target filetargetDirectory
- directory in which the result file must be producedProcessingException
- when an error occurred during the transformationFile transform(String itemURI, File sourceFile, String charsetName, File targetDirectory, TransformerBinaryStorage binaryStorage) throws ProcessingException
itemURI
- uri of the item being transformedsourceFile
- source file to transformcharsetName
- encoding of the source and target filetargetDirectory
- directory in which the result file must be producedbinaryStorage
- storage implementationProcessingException
- when an error occurred during the transformationCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries