Russ schrieb:
> Hi,
> This URL:
> http://download.finance.yahoo.com/d/quotes.csv?s=ibm&f=sl1c1d1
>
> Returns this text String:
> "IBM",122.81,0.00,"2/10/2010"
>
> What do I have to implement in my ServiceImpl.java file to connect to
> this URL and return the text String to the client?
new
URL("http://download.finance.yahoo.com/d/quotes.csv?s=ibm&f=sl1c1d1").getContent()
should return a String if the returned content type is text/plain.
Otherwise use openConnection().getInputStream() and read the data into
a StringBuilder().
Details on the usage of that and HttpUrlConnection can be
found easily by using the search engine of you choice.
Regards, Lothar
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.