Re: Dealing with encodings and file: URIs

"Toman_Vojtech@emc.com" <Toman_Vojtech@emc.com> writes:
> Um. What kind of filesystem are you using that tells you the content
> type?

I run everything through java.net.URL for consistency since a p:data
URI can be any protocol.

Opening a connection to a file: URI reports a content type, presumably
based on what the OS reports. For a .txt file, it reports text/plain,
at least on my Mac.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Who knows whether the best of men be
http://nwalsh.com/            | known? or whether there be not more
                              | remarkable persons forgot, than any
                              | that stand remembered in the known
                              | account of time.--Sir Thomas Browne

Received on Wednesday, 29 July 2009 13:35:23 UTC