Package org.forgerock.doc.maven.utils
Class ImageDataTransformer
java.lang.Object
org.apache.commons.io.DirectoryWalker<File>
org.forgerock.doc.maven.utils.XmlTransformer
org.forgerock.doc.maven.utils.ImageDataTransformer
Update XML files, transforming <imagedata> elements to make sure they use
scalefit="1"
, width="100%"
, and contentdepth="100%"
attributes.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.io.DirectoryWalker
org.apache.commons.io.DirectoryWalker.CancelException
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.forgerock.doc.maven.utils.XmlTransformer
handleFile, update
Methods inherited from class org.apache.commons.io.DirectoryWalker
checkIfCancelled, filterDirectoryContents, handleCancelled, handleDirectory, handleDirectoryEnd, handleDirectoryStart, handleEnd, handleIsCancelled, handleRestricted, handleStart, walk
-
Constructor Details
-
ImageDataTransformer
public ImageDataTransformer()Construct an updater to match DocBook XML files.The files are updated in place.
The following example shows how this might be used in your code.
File xmlSourceDirectory = new File("/path/to/xml/files/"); // Update XML files. ImageDataTransformer idt = new ImageDataTransformer(); return idt.update(xmlSourceDirectory);
-