incubator-sanselan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Matthew Chen" <>
Subject Re: A wish to add to sanselan's wish list ;)
Date Sun, 10 Feb 2008 16:46:12 GMT
Hi Enric,

   Thanks for your questions.

   I (like many people) am not a fan of java's built-in serialization
mechanism (ie. java.ui.Serializable, etc.).  For one thing, it is (to
the best of my knowledge) incompatible with final fields.  I use they
often to enforce the immutability of classes.

   Even worse, it violates the design principle of "Separation of
concerns," by requiring serialization logic to be intermingled with
model logic.

   There are many Java serialization alternatives (often using xml).
Try this search:

  Sanselan's data structures are pretty straight-forward; you should
be able to easily serialize them using any of these libraries.

   About the Unknown EXIF tag: EXIF is an open-ended standard and
there are many "custom" or proprietary tags that aren't documented,
much less widely adopted.  If you find documentation on this tag, I'd
love to see it.

   I use Phil Harvey's archive as my de-facto EXIF standard.


ps. I've cc'd the sanselan-dev mailing list.
On Feb 9, 2008 10:52 AM, Enric Rodriguez Royo <> wrote:
> Hi, I'm a student at Pompeu Fabra's University, (spain, europe)
> ( and we are developing a peer to peer application for sharing
> images.
> This is not a professional development, but we are doing this because is
> part of the project based learning approach our university has taken.
> We are going to use JAI for image modification, but I was looking for a way
> to read image metadata using java and I found Sanselan which, in my
> oppinion, works fine for our project.
> The idea is to read the metadata and send all the metadata items to the
> server, then the server will handle with the metadata for example, to decide
> which fields wants to save to the database, whatever...
> But I found that IImageMetadataItem and IImageMetadata does not extend
> Serializable interface. It would be interesting if they do because It would
> be very easy to send them over the network. For now, I'm reading the item
> list and copying the content to our serializable object structure.
> Another thing I found when using the example for reading metada, is that
> when modifying the metadata using windows vista system, some values are
> written using UTF-16, and there is one unknown tag that appears after
> XPTitle, XPComment, XPAuthor, XPSubject...
> item: Unknown Tag (0xea1c): 28, -22, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0
> Thanks for your attention.

View raw message