public class FileConversionImageHandler extends AbstractConversionImageHandler
handledImagesMap, imageDirPath, includeUUID, log, uuid| Constructor and Description |
|---|
FileConversionImageHandler(String imageDirPath,
boolean includeUUID)
Creates a DefaultConversionImageHandler.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createStoredImage(BinaryPart binaryPart,
byte[] bytes) |
protected String |
setupImageUri(File imageFile)
If there is a prefix use this prefix for the uri
|
protected File |
setupRootFolder(BinaryPart binaryPart) |
protected String |
storeImage(BinaryPart binaryPart,
byte[] bytes,
File folder,
String filename) |
clear, createEncodedImage, createKey, doHandleImage, getImageData, getImageName, handleExternalImage, handleImage, handleInternalImage, isInternalImage, setupImageNamepublic FileConversionImageHandler(String imageDirPath, boolean includeUUID)
imageDirPath - targetUri - includeUUID - protected String createStoredImage(BinaryPart binaryPart, byte[] bytes) throws Docx4JException
createStoredImage in class AbstractConversionImageHandlerDocx4JExceptionprotected String storeImage(BinaryPart binaryPart, byte[] bytes, File folder, String filename) throws Docx4JException
Docx4JExceptionprotected File setupRootFolder(BinaryPart binaryPart) throws Docx4JException
Docx4JExceptionCopyright © 2007-2022. All Rights Reserved.