General J2EE: Please help clear up my ignorance on streams

  1. Please help clear up my ignorance on streams (1 messages)

    In my knowledge of java, there is a blackhole when it comes to streams. I simply don't know what to do with an InputStream.

    The current dilemma I face is in using Jakarta's HTTP Client package, where I can stream data to an HTTP server with an OutputStream (that's not a problem) and read in response data with an InputStream. Okay, now how can I do anything useful with this InputStream? What I want to do is write out whatever comes in from the response to a Writer or an OutputStream (maybe a FileWriter, a Writer from an HTTPServletResponse, etc). What am I missing here?
  2. Read