How to close ftp connection opened by URLConnection?

Discussion in 'Java' started by kisonaj, Apr 24, 2005.

  1. kisonaj

    kisonaj Guest

    Hi everybody.
    Can you tell me how to close connection opened by URLConnection ?

    Thanks a lot, Mark
    kisonaj, Apr 24, 2005
    #1
    1. Advertising

  2. kisonaj wrote:
    > Can you tell me how to close connection opened by URLConnection ?


    From the API documentation of URLConnection:

    | Invoking the close() methods on the InputStream or OutputStream of an
    | URLConnection after a request may free network resources associated
    | with this instance, unless particular protocol specifications specify
    | different behaviours for it.

    /Thomas

    --
    The comp.lang.java.gui FAQ:
    ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
    Thomas Weidenfeller, Apr 25, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul van Rossem
    Replies:
    0
    Views:
    601
    Paul van Rossem
    Apr 7, 2005
  2. tshad
    Replies:
    1
    Views:
    463
    Scott M.
    Sep 6, 2006
  3. Replies:
    2
    Views:
    3,597
  4. Iñaki Baz Castillo
    Replies:
    7
    Views:
    847
    Iñaki Baz Castillo
    Jan 12, 2010
  5. D. Buck
    Replies:
    2
    Views:
    482
    D. Buck
    Jun 29, 2004
Loading...

Share This Page