logo       

Re: downloading binaries with helma.Http: msg#00013

java.helma.general

Subject: Re: downloading binaries with helma.Http

2006/11/20, thomas <thomas@xxxxxxxxxx>:
>
> I think your first proposal fits best. The two other need two methods
> (useBinaryMode(), useTextMode()) and i think its an advantage to minimize
> the overall count of methods.
> >
> > http.setMode(Http.BINARY);
> > http.setMode(Http.TEXT);

Oops, of course that would then be

http.setMode(helma.Http.BINARY);
http.setMode(helma.Http.TEXT);

which is a bit more verbose than I'd want. After a bit more thinking,
I now came up with a new boolean textMode property, which defaults to
true:

http.setTextMode(true|false);
http.getTextMode();

any substantial objections?

hannes


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise