Use a java.io.SequenceInputStream:

  //construct contentTypeHeader here

  StringBuffer buf = new StringBuffer(contentTypeHeader);
  SequenceInputStream seqIn =
      new SequenceInputStream(
          new StringBufferInputStream(buf),
          method.getResponseBodyAsStream());

  //do something with seqIn here.

HTH,
-Alan


Sam Berlin wrote:
Could you create a custom InputStream that took the header & response
inputstream in its constructor, and returned one and then the other
when reading?

Sam


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to