On Thu, 10 Feb 2005 12:44:28 +0100, "Erik Bruchez" <[EMAIL PROTECTED]>
said:
> Eric van der Vlist wrote:
> 
> > I don't know how accurate it is, but there is the sun.net.www.MimeTable
> > class. I am using it in the ArchiveConverter on which I am working.
> 
> This may not be portable across JVMs though (thinking about IBMs,
> JRockit).
> 
> But looking at the JDK code, I see that this appears to be used is 
> URLConnection.getFileNameMap(), so you could use a portable API to 
> access it.

sun.net.www.MimeTable doesn't really check the OS.  It uses
jre/lib/content-types.properties.

-- Dan S


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to