• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            大龍的博客

            常用鏈接

            統計

            最新評論

            Question about URLConnection

            I have found that class "URLConnection" has methods to establish a connection, for example, method "openConnection" and method "connect". But I have not found any methods of this class which are dealing with disconnect. I am wondering if I use class "URLConnection" to establish an HTTP connection to a remote host, what is the correct, clean and efficient approach to disconnect from remote host or close the connection.

            1) for HTTP why not use HttpURLConnection instead?
            2) HTTP is a stateless protocol meaning the server will close the connection for you.
            3) if you close all streams you get from the URLConnection the connection is gone.


            posted on 2011-09-23 05:22 大龍 閱讀(237) 評論(0)  編輯 收藏 引用

            欧美久久综合九色综合| 一本伊大人香蕉久久网手机| 日本久久中文字幕| 亚洲国产精品无码久久一区二区| 久久综合偷偷噜噜噜色| 久久亚洲私人国产精品vA| 嫩草伊人久久精品少妇AV| 亚洲国产成人久久综合一| 久久有码中文字幕| 久久国产精品99精品国产| 久久久久久一区国产精品| 亚洲精品无码久久一线| 国产AⅤ精品一区二区三区久久| 色偷偷88欧美精品久久久 | 国内精品久久久久久99蜜桃 | 四虎影视久久久免费| 亚洲欧美日韩中文久久| 欧美久久综合九色综合| 99久久中文字幕| 久久精品国产亚洲AV久| 国产成人无码精品久久久免费| 狠狠色丁香婷婷久久综合| 香蕉久久一区二区不卡无毒影院| 亚洲国产精品无码久久一线| 色欲综合久久躁天天躁| 国产免费久久精品99久久| 久久99精品久久久久久| 激情伊人五月天久久综合| 无码日韩人妻精品久久蜜桃| 内射无码专区久久亚洲| 人妻少妇精品久久| 亚洲欧美日韩久久精品| 亚洲精品无码久久久| 亚洲国产成人精品女人久久久 | 久久综合九色综合欧美就去吻| 久久精品国产亚洲av日韩| 中文字幕热久久久久久久| 久久丫忘忧草产品| 欧洲人妻丰满av无码久久不卡| 人妻无码αv中文字幕久久| 久久综合给合久久狠狠狠97色69|