You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Giovanni cto <gi...@wonderflow.co> on 2015/11/19 13:25:40 UTC

HSLF objects - .equals() method is not implemented

When you want to compare 2 ppt files, for example, it is not so easy to do it.
The reason is because:

1. comparing bytes is not a safe approach.

The ppt file could contain some custom metadata e.g. creation time of the file.
These metadata makes impossibile to compare 2 files by related bytes.

2. comparing slides (shapes) is not supported

Slide or Shape object do not have equals() method implemented

What do you suggest to compare 2 files



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: HSLF objects - .equals() method is not implemented

Posted by kiwiwings <ki...@apache.org>.
Hi Giovanni,

tell me a bit more about your use-case.

At what level do you want to compare slideshows?
(text, position, color, escher properties, xml metadata ...)

I guess whatever equals() would like, wouldn't satisfy your needs.
e.g. if equals() compares that both shapes are on the same slide of same
slideshow -> wouldn't work for you

Andi



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/HSLF-objects-equals-method-is-not-implemented-tp5720995p5720996.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org