Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13207
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: EXIF tag handling in Java |
| Date | 2012-03-26 16:24 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <15644547.311.1332804259777.JavaMail.geo-discussion-forums@pbbpx3> (permalink) |
| References | (2 earlier) <jkoa7u$4v4$1@localhost.localdomain> <28354805.115.1332788170456.JavaMail.geo-discussion-forums@pbcpw7> <jkqhd9$nla$2@localhost.localdomain> <17521988.199.1332793740252.JavaMail.geo-discussion-forums@pbvs10> <jkqoqg$pmg$1@localhost.localdomain> |
Martin Gregorie wrote: > Lew wrote: >> Martin Gregorie wrote: >>> Lew wrote: >>>> Martin Gregorie wrote: >>>>> If the PHP menu generator is unacceptably slow when dealing with >>>>> EXIF tags, I'll use the aesthetically ugly trick of keeping the >>>>> captions as a separate CSV list (filename,caption) which will >>>>> probably be faster since at the start of the run it can be loaded >>>>> into a Hashtable (Java) >>>>> or associative array (PHP) once and will stay in memory while the >>>>> menu builder is running. >>>> >>>> I recommend against use of 'java.util.Hashtable' in favor of the >>>> modern (since 1998) 'Map' implementations. >>> >>> Noted. I only considered Hashtable because they are favoured by some of >>> the javax.imageio.* packages - scarecely surprising since most of these >>> packages seem to have been around since at least Java 1.4. >> >> Very, very surprising since the modern collections classes were >> introduced in Java 1.2 and the javax.imageio package in Java 1.4. >> >> You should check the Javadocs. > > I did: for some operations you need to use a filter which is based > java.awt.image.ImageFilter. This gets passed properties via the > setProperties(Hashtable<?,?>) method. You are awesome. Seriously. That is a deep dependency and I sure am grateful to you for digging that one out. 'java.awt.image' is legacy 1.0 code. I wonder if the Powers That Be would consider adding a 'Map<?, ?>' overload to that call. Probably not worth the effort. On a related note, 'java.util.Properties' extends 'Hashtable<Object,Object>', but if you use that upcast you lose default properties. (That 'Properties' is defined in terms of 'Object' but can only use 'String' is one of its interesting aspects.) (They did add 'public Set<String> stringPropertyNames()' in Java 6.) On a tangential note, all this is exemplary of why Java programmers tend not to be acolytes of the language. -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-24 21:37 +0000
Re: EXIF tag handling in Java Marty Blake <blake3334@nowhere.invalid> - 2012-03-24 23:13 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 13:09 +0000
Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 11:42 -0400
Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 12:22 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 17:10 +0000
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 16:46 +0000
Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 12:59 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 17:15 +0000
Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 14:08 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 18:34 +0000
Re: EXIF tag handling in Java Knute Johnson <nospam@knutejohnson.com> - 2012-03-25 10:46 -0700
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 18:13 +0000
Re: EXIF tag handling in Java "John B. Matthews" <nospam@nospam.invalid> - 2012-03-25 14:45 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 23:37 +0000
Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 11:56 -0700
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 19:48 +0000
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 19:52 +0000
Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 13:29 -0700
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 21:58 +0000
Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 16:24 -0700
Re: EXIF tag handling in Java Gene Wirchenko <genew@ocis.net> - 2012-03-26 18:19 -0700
Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 19:03 -0700
Re: EXIF tag handling in Java Gene Wirchenko <genew@ocis.net> - 2012-03-27 09:06 -0700
csiph-web