public class DiffPicturesUtils extends Object
Constructor and Description |
---|
DiffPicturesUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
addSuffixToFileName(String inFileName,
String inSuffix) |
static Blob |
getDocumentBlob(DocumentModel inDoc,
String inXPath) |
static boolean |
sameFormatAndDimensions(Blob inB1,
Blob inB2)
Check if the 2 blobs have the same format and same size.
|
static String |
updateTargetFileName(Blob inBlob,
String inTargetFileName,
String inTargetFileSuffix) |
public DiffPicturesUtils()
public static String updateTargetFileName(Blob inBlob, String inTargetFileName, String inTargetFileSuffix)
public static String addSuffixToFileName(String inFileName, String inSuffix)
public static boolean sameFormatAndDimensions(Blob inB1, Blob inB2)
If blobs are null or are not pictures, we do nothing, it will fails with later (or here with a null pointer exception)
inB1
- inB2
- public static Blob getDocumentBlob(DocumentModel inDoc, String inXPath)
Copyright © 2015 Nuxeo SA. All rights reserved.