commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Aya" <C....@eaa.unsw.edu.au>
Subject RE: mime extension mappings list
Date Mon, 07 Mar 2005 23:40:47 GMT
Good question. Mime file mapping is not an easy business. Not all of them have extensions.


Don't know of an easy way different from parsing any version of /etc/mime.types and generate
a java file from there.

Carlos

-----Original Message-----
From: Dakota Jack [mailto:dakota.jack@gmail.com]
Sent: Tuesday, 8 March 2005 10:11 AM
To: Jakarta Commons Users List
Subject: Re: mime extension mappings list


How do I map extensions to this list, Carlos?  Thanks.

Jack


On Tue, 8 Mar 2005 09:40:52 +1100, Carlos Aya <C.Aya@eaa.unsw.edu.au> wrote:
> Also, you may want to check the official list
> 
> http://www.iana.org/assignments/media-types/
> 
> Which may be outdated but it's official
> 
> (it's comprehensive if you believe that regulatory bodies do their job ;-)
> 
> -----Original Message-----
> From: Bridges, Ed NYC [mailto:EBridges@citco.com]
> Sent: Tuesday, 8 March 2005 9:31 AM
> To: 'Jakarta Commons Users List'; Lance Semmens
> Subject: RE: mime extension mappings list
> 
> If you're on a unix system (at least, linux) you can also use
> /etc/mime.types
> 
> -----Original Message-----
> From: Dakota Jack [mailto:dakota.jack@gmail.com]
> Sent: Monday, March 07, 2005 5:20 PM
> To: Lance Semmens
> Cc: Jakarta Commons Users List
> Subject: Re: mime extension mappings list
> 
> Interesting, Lance.  Thanks.  I will check that out.
> 
> Jack
> 
> On Tue, 8 Mar 2005 08:42:37 +1030, Lance Semmens
> <lance.semmens@essential.com.au> wrote:
> > I'm not sure what you're needing the list for but this may be handy
> >         String contentType =
> > java.net.URLConnection.getFileNameMap().getContentTypeFor(fileName)
> >
> > -----Original Message-----
> > From: Dakota Jack [mailto:dakota.jack@gmail.com]
> > Sent: Tuesday, 8 March 2005 8:23 AM
> > To: Jakarta Commons Users List
> > Subject: mime extension mappings list
> > Importance: Low
> >
> > Does anyone have a comprehensive mime extension mapping list available?
> > Thanks.
> >
> > --
> > "You can lead a horse to water but you cannot make it float on its back."
> > ~Dakota Jack~
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
> 
> --
> "You can lead a horse to water but you cannot make it float on its back."
> ~Dakota Jack~
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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


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


Mime
View raw message