incubator-sanselan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Matthew Chen" <charlesmc...@gmail.com>
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.

http://en.wikipedia.org/wiki/Separation_of_concerns

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

http://www.google.com/search?source=ig&hl=en&rlz=&q=java+serialization+xml&btnG=Google+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.

http://www.google.com/search?source=ig&hl=en&rlz=&q=ea1c+exif&btnG=Google+Search
http://www.google.com/search?q=59932+exif&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

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

http://www.sno.phy.queensu.ca/~phil/exiftool/

Charles.

ps. I've cc'd the sanselan-dev mailing list.
On Feb 9, 2008 10:52 AM, Enric Rodriguez Royo <enrodri86@gmail.com> wrote:
> Hi, I'm a student at Pompeu Fabra's University, (spain, europe)
> (www.upf.edu) 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.
>

Mime
View raw message