public interface Transformer
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)
Transforms item [itemURI] from [sourceFile] using [charsetName] into the targetDirectory, returning the
created File.
|
void setTargetLanguage(int languageId)
languageId
- target language for the transformationFile transform(String itemURI, File sourceFile, String charsetName, File targetDirectory) 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 producedProcessingException
- 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