I don't really know about this but I would hazard a guess and say that one returns a DataInputStream ( http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html ) and the other a InputStream ( http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html ) ?
And what do you mean when called from an HTTPConnection?
Im actually opening a HTTP connection and then opening an inputstream, now u can open either an inputStream or a dataInputStream.
Actually my question was what is the difference between an inputstream and a dataInputStream. The java.sun website doesn't really point out the difference and the advantage of each.
Thanks for the quick reply.