Help -- InputStream

Discussions

XML & Web services: Help -- InputStream

  1. Help -- InputStream (2 messages)

    Hi all,

    I have a very general question. If I assign an InputStream to another InputStream, will I loose the content of the first InputStream?

    Example:
    InputStream a = somewhereReturnInputStream();
    InputStream b = InputStream a;

    Now would InputStream a be empty because I assigned it to InputStream b?

    Any input is deeply appreciated. Thank you very much,
    Stephanie

    Threaded Messages (2)

  2. Help -- InputStream[ Go to top ]

    In Java, there is no operator overloading like C++. You are
    simply copying one object ref to another object ref. There is no other side effect.

    Pranab
  3. Help -- InputStream[ Go to top ]

    Sweet! Thank you very much for your help.