W
wuweipku
Hi,
I'm just have to make a program that use a given rss address and
download get the data
of the rss address and transfer to the JAVA IO.
First I use the httpclient Jar. I use the GetMethod class to get the
InputStream.
The main code is:
client = new HttpClient();
getMethod = new GetMethod(url);
client.executeMethod(getMethod);
inputStream = getMethod.getResponseBodyAsStream();
inputStream = new GZIPInputStream(inputStream);
Now, I want to use the java nio to get the InputStream.
Because I want to download the data more fast. But I don't know
how to make it.
Does anyone know about it? Thank you!!!
I'm just have to make a program that use a given rss address and
download get the data
of the rss address and transfer to the JAVA IO.
First I use the httpclient Jar. I use the GetMethod class to get the
InputStream.
The main code is:
client = new HttpClient();
getMethod = new GetMethod(url);
client.executeMethod(getMethod);
inputStream = getMethod.getResponseBodyAsStream();
inputStream = new GZIPInputStream(inputStream);
Now, I want to use the java nio to get the InputStream.
Because I want to download the data more fast. But I don't know
how to make it.
Does anyone know about it? Thank you!!!