Re: protocol question
- From: "Rhino" <no.offline.contact.please@xxxxxxxxxx>
- Date: Sun, 30 Oct 2005 12:25:55 -0500
"Roedy Green" <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx> wrote in
message news:cro8m11u0uosm7b96a2p4dci3cpjmnmn4c@xxxxxxxxxx
> On Sat, 29 Oct 2005 14:59:38 -0400, "Rhino"
> <no.offline.contact.please@xxxxxxxxxx> wrote, quoted or indirectly
> quoted someone who said :
>
> >If I only stored "Images/foo.gif" in config file, someone looking at the
> >code would have to *INFER* that it was in a jar and was going to be
obtained
> >via this.getClass().getResource().
>
> Experienced Java programmers all know what a resource is, and are used
> to adjusting file locations external to the program to have them still
> considered resources in different contexts, e.g. debugging, running
> locally, running on a server, running as an Applet.
>
> If you start monkeying with that, you are going to cause 100 times as
> much confusion as you imagine you are avoiding.
Causing confusion is the last thing I want. I'm looking to find a way of
describing resources so that it is easy for my code to find those resources
and easy for maintainers of code to understand what I am doing. I'm just
struggling to find a good way to indicate that a given file is in a jar in
the filesystem so I'm looking for suggestions on how to notate the file name
to indicate that.
Rhino
.
- References:
- Jar: protocol question
- From: Rhino
- Re: protocol question
- From: Ben_
- Re: protocol question
- From: Roedy Green
- Jar: protocol question
- Prev by Date: Re: protocol question
- Next by Date: Design of File Choosers
- Previous by thread: Re: protocol question
- Next by thread: Re: protocol question
- Index(es):