public class TCDLDefaultTransformer extends TCDLTransformer implements FileTransformer
Constructor and Description |
---|
TCDLDefaultTransformer()
Creates a new TCDLDefaultTransformer.
|
Modifier and Type | Method and Description |
---|---|
File |
transform(String itemURI,
File sourceFile,
String charsetName,
File targetDirectory)
Deprecated.
|
File |
transform(String itemURI,
File sourceFile,
String charsetName,
File targetDirectory,
TransformerBinaryStorage binaryStorage)
Transforms TCDL enabled content from [sourceFile] optionally using the [charsetName] for its encoding.
|
void |
transform(String itemURI,
String input,
Writer target)
Transforms TCDL enabled content from the [input] String and writes the result to the [target].
|
process, process
configure, createTransformContext, getDocumentBuilder, getTagHandlerRegistry, isLanguageOverridden, setCodeBlockMarkers, setProperty, setTargetLanguage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setTargetLanguage
setTargetLanguage
public TCDLDefaultTransformer()
public File transform(String itemURI, File sourceFile, String charsetName, File targetDirectory, TransformerBinaryStorage binaryStorage) throws ProcessingException
Note that when you call this method multiple times on the same instance, the same configuration and set properties will be used.
transform
in interface FileTransformer
itemURI
- uri of the item being transformedsourceFile
- the possibly TCDL enabled file to be transformedcharsetName
- when non-null the charsetName will be used for reading/writing the filestargetDirectory
- directory in which the result file must be storedbinaryStorage
- storage implementationProcessingException
- when the source could not be transformedpublic void transform(String itemURI, String input, Writer target) throws TCDLTransformerException
Note that when you call this method multiple times on the same instance, the same configuration and (programmatically) set properties will be used.
itemURI
- uri of the item being transformedinput
- TCDL enabled contenttarget
- Writer to write output toTCDLTransformerException
- when the source could not be transformed@Deprecated public File transform(String itemURI, File sourceFile, String charsetName, File targetDirectory) throws ProcessingException
transform(String, File, String, File, TransformerBinaryStorage)
.Note that when you call this method multiple times on the same instance, the same configuration and set properties will be used.
transform
in interface FileTransformer
itemURI
- uri of the item being transformedsourceFile
- the possibly TCDL enabled file to be transformedcharsetName
- when non-null the charsetName will be used for reading/writing the filestargetDirectory
- directory in which the result file must be storedProcessingException
- when the source could not be transformedCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries