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. Advertisements

  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. Advertisements

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:
    773
    Paul van Rossem
    Apr 7, 2005
  2. tshad
    Replies:
    1
    Views:
    574
    Scott M.
    Sep 6, 2006
  3. Replies:
    2
    Views:
    4,168
  4. johnny
    Replies:
    1
    Views:
    923
    Jerry Hill
    Dec 8, 2006
  5. S_K
    Replies:
    6
    Views:
    939
    Russell
    Dec 7, 2007
  6. Iñaki Baz Castillo
    Replies:
    7
    Views:
    1,282
    Iñaki Baz Castillo
    Jan 12, 2010
  7. D. Buck
    Replies:
    2
    Views:
    958
    D. Buck
    Jun 29, 2004
  8. hyejin
    Replies:
    8
    Views:
    583
    Martin Honnen
    Aug 29, 2006
Loading...