|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.util.ImageComparator
The ImageComparator tries to compare a byte[] for equality by creating 2 hashes for the bytearray and comparing thoose hashes. If no digest algorithms are available, then the complete byte[] is used for comparison.
Constructor Summary | |
ImageComparator()
Creates a new ImageComparator. |
Method Summary | |
java.lang.Object |
createCompareData(byte[] image,
boolean fast)
Creates 2 comparable objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageComparator()
Method Detail |
public java.lang.Object createCompareData(byte[] image, boolean fast)
image
- the image data which should be prepared for comparisonfast
- whether to prefer the memory intensive faster compare method to
the digest based comparation. This may result in outofmemory errors on
huge reports or images.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |