Hi All,
I’m currently working on a project to develop an application for PS3 using BD-J. BD-J is very similar to Java J2SE1.3. I use HttpURLConnection to download content. The skeleton code is as follows
HttpURLConnection inputConnection = (HttpURLConnection)effectiveUrl_.openConnection();
inputConnection.connect();
BufferedInputStream inputStream_ = new BufferedInputStream(inputConnection.getInputStream());
inputStream.read(dataBuffer, offset, length);
...
inputStream.close();
However it takes a very long time, up to more than 15 seconds, to close the inputStream in PS3, when the URL represents a big file. This does not happen in PC.
- I wonder if anyone has some idea about why it takes so long to close the inputstream.
- I downloaded IBM’s JDK2. I would like to understand how they implement the HttpURLConnection... However the HttpURLConnection.java is only an abstract class, and I don’t see the implementation on getInputStream() at all. I wonder if someone can give me some suggestion on how to find the actual implementation of the java j2se1.3's http stack.
Thanks,
Derek