亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? httpconnection.java

?? 高性能分詞算法
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
     * @throws IllegalStateException if the connection is not open     * @throws IOException if an I/O problem occurs     *      * @since 3.0     */    public void print(String data, String charset)        throws IOException, IllegalStateException {        LOG.trace("enter HttpConnection.print(String)");        write(EncodingUtil.getBytes(data, charset));    }        /**     * @deprecated Use {@link #printLine(String, String)}     *      * Writes the specified String (as bytes), followed by     * <tt>"\r\n".getBytes()</tt> to the output stream.     *     * @param data the data to be written     * @throws IllegalStateException if the connection is not open     * @throws IOException if an I/O problem occurs     */    public void printLine(String data)        throws IOException, IllegalStateException {        LOG.trace("enter HttpConnection.printLine(String)");        writeLine(EncodingUtil.getBytes(data, "ISO-8859-1"));    }    /**     * Writes the specified String (as bytes), followed by     * <tt>"\r\n".getBytes()</tt> to the output stream.     *     * @param data the data to be written     * @param charset the charset to use for writing the data     * @throws IllegalStateException if the connection is not open     * @throws IOException if an I/O problem occurs     *      * @since 3.0     */    public void printLine(String data, String charset)        throws IOException, IllegalStateException {        LOG.trace("enter HttpConnection.printLine(String)");        writeLine(EncodingUtil.getBytes(data, charset));    }            /**     * Writes <tt>"\r\n".getBytes()</tt> to the output stream.     *     * @throws IllegalStateException if the connection is not open     * @throws IOException if an I/O problem occurs     */    public void printLine()        throws IOException, IllegalStateException {        LOG.trace("enter HttpConnection.printLine()");        writeLine();    }    /**     * Reads up to <tt>"\n"</tt> from the (unchunked) input stream.     * If the stream ends before the line terminator is found,     * the last part of the string will still be returned.     *     * @throws IllegalStateException if the connection is not open     * @throws IOException if an I/O problem occurs     * @return a line from the response     *      * @deprecated use #readLine(String)     */    public String readLine() throws IOException, IllegalStateException {        LOG.trace("enter HttpConnection.readLine()");        assertOpen();        return HttpParser.readLine(inputStream);    }    /**     * Reads up to <tt>"\n"</tt> from the (unchunked) input stream.     * If the stream ends before the line terminator is found,     * the last part of the string will still be returned.     *      * @param charset the charset to use for reading the data     *     * @throws IllegalStateException if the connection is not open     * @throws IOException if an I/O problem occurs     * @return a line from the response     *      * @since 3.0     */    public String readLine(final String charset) throws IOException, IllegalStateException {        LOG.trace("enter HttpConnection.readLine()");        assertOpen();        return HttpParser.readLine(inputStream, charset);    }    /**     * Attempts to shutdown the {@link Socket}'s output, via Socket.shutdownOutput()     * when running on JVM 1.3 or higher.     *      * @deprecated unused     */    public void shutdownOutput() {        LOG.trace("enter HttpConnection.shutdownOutput()");        try {            // Socket.shutdownOutput is a JDK 1.3            // method. We'll use reflection in case            // we're running in an older VM            Class[] paramsClasses = new Class[0];            Method shutdownOutput =                socket.getClass().getMethod("shutdownOutput", paramsClasses);            Object[] params = new Object[0];            shutdownOutput.invoke(socket, params);        } catch (Exception ex) {            LOG.debug("Unexpected Exception caught", ex);            // Ignore, and hope everything goes right        }        // close output stream?    }    /**     * Closes the socket and streams.     */    public void close() {        LOG.trace("enter HttpConnection.close()");        closeSocketAndStreams();    }    /**     * Returns the httpConnectionManager.     * @return HttpConnectionManager     */    public HttpConnectionManager getHttpConnectionManager() {        return httpConnectionManager;    }    /**     * Sets the httpConnectionManager.     * @param httpConnectionManager The httpConnectionManager to set     */    public void setHttpConnectionManager(HttpConnectionManager httpConnectionManager) {        this.httpConnectionManager = httpConnectionManager;    }    /**     * Releases the connection. If the connection is locked or does not have a connection     * manager associated with it, this method has no effect. Note that it is completely safe      * to call this method multiple times.     */    public void releaseConnection() {        LOG.trace("enter HttpConnection.releaseConnection()");        if (locked) {            LOG.debug("Connection is locked.  Call to releaseConnection() ignored.");        } else if (httpConnectionManager != null) {            LOG.debug("Releasing connection back to connection manager.");            httpConnectionManager.releaseConnection(this);        } else {            LOG.warn("HttpConnectionManager is null.  Connection cannot be released.");        }    }    /**     * Tests if the connection is locked. Locked connections cannot be released.      * An attempt to release a locked connection will have no effect.     *      * @return <tt>true</tt> if the connection is locked, <tt>false</tt> otherwise.     *      * @since 3.0     */    protected boolean isLocked() {        return locked;    }    /**     * Locks or unlocks the connection. Locked connections cannot be released.      * An attempt to release a locked connection will have no effect.     *      * @param locked <tt>true</tt> to lock the connection, <tt>false</tt> to unlock     *  the connection.     *      * @since 3.0     */    protected void setLocked(boolean locked) {        this.locked = locked;    }    // ------------------------------------------------------ Protected Methods    /**     * Closes everything out.     */    protected void closeSocketAndStreams() {        LOG.trace("enter HttpConnection.closeSockedAndStreams()");        isOpen = false;                // no longer care about previous responses...        lastResponseInputStream = null;        if (null != outputStream) {            OutputStream temp = outputStream;            outputStream = null;            try {                temp.close();            } catch (Exception ex) {                LOG.debug("Exception caught when closing output", ex);                // ignored            }        }        if (null != inputStream) {            InputStream temp = inputStream;            inputStream = null;            try {                temp.close();            } catch (Exception ex) {                LOG.debug("Exception caught when closing input", ex);                // ignored            }        }        if (null != socket) {            Socket temp = socket;            socket = null;            try {                temp.close();            } catch (Exception ex) {                LOG.debug("Exception caught when closing socket", ex);                // ignored            }        }                tunnelEstablished = false;        usingSecureSocket = false;    }    /**     * Throws an {@link IllegalStateException} if the connection is already open.     *     * @throws IllegalStateException if connected     */    protected void assertNotOpen() throws IllegalStateException {        if (isOpen) {            throw new IllegalStateException("Connection is open");        }    }    /**     * Throws an {@link IllegalStateException} if the connection is not open.     *     * @throws IllegalStateException if not connected     */    protected void assertOpen() throws IllegalStateException {        if (!isOpen) {            throw new IllegalStateException("Connection is not open");        }    }    /**     * Gets the socket's sendBufferSize.     *      * @return the size of the buffer for the socket OutputStream, -1 if the value     * has not been set and the socket has not been opened     *      * @throws SocketException if an error occurs while getting the socket value     *      * @see Socket#getSendBufferSize()     */    public int getSendBufferSize() throws SocketException {        if (socket == null) {            return -1;        } else {            return socket.getSendBufferSize();        }    }    /**     * Sets the socket's sendBufferSize.     *      * @param sendBufferSize the size to set for the socket OutputStream     *      * @throws SocketException if an error occurs while setting the socket value     *      * @see Socket#setSendBufferSize(int)     *      * @deprecated Use {@link HttpConnectionParams#setSendBufferSize(int)},     * {@link HttpConnection#getParams()}.     */    public void setSendBufferSize(int sendBufferSize) throws SocketException {        this.params.setSendBufferSize(sendBufferSize);    }    // ------------------------------------------------------- Static Variable    /** <tt>"\r\n"</tt>, as bytes. */    private static final byte[] CRLF = new byte[] {(byte) 13, (byte) 10};    /** Log object for this class. */    private static final Log LOG = LogFactory.getLog(HttpConnection.class);        // ----------------------------------------------------- Instance Variables        /** My host. */    private String hostName = null;        /** My port. */    private int portNumber = -1;        /** My proxy host. */    private String proxyHostName = null;        /** My proxy port. */    private int proxyPortNumber = -1;        /** My client Socket. */    private Socket socket = null;        /** My InputStream. */    private InputStream inputStream = null;    /** My OutputStream. */    private OutputStream outputStream = null;        /** An {@link InputStream} for the response to an individual request. */    private InputStream lastResponseInputStream = null;        /** Whether or not the connection is connected. */    protected boolean isOpen = false;        /** the protocol being used */    private Protocol protocolInUse;        /** Collection of HTTP parameters associated with this HTTP connection*/    private HttpConnectionParams params = new HttpConnectionParams();        /** flag to indicate if this connection can be released, if locked the connection cannot be      * released */    private boolean locked = false;        /** Whether or not the socket is a secure one. */    private boolean usingSecureSocket = false;        /** Whether the connection is open via a secure tunnel or not */    private boolean tunnelEstablished = false;        /** the connection manager that created this connection or null */    private HttpConnectionManager httpConnectionManager;        /** The local interface on which the connection is created, or null for the default */    private InetAddress localAddress;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品精华液网站| 亚洲一线二线三线久久久| 成人黄色电影在线| 一区二区三区电影在线播| 日韩视频免费观看高清完整版| 国产东北露脸精品视频| 亚洲国产cao| 国产精品视频九色porn| 欧美丰满一区二区免费视频 | 17c精品麻豆一区二区免费| 欧美日韩www| 91色九色蝌蚪| 成人免费视频免费观看| 日韩高清不卡一区二区三区| 国产精品欧美经典| 日韩欧美不卡在线观看视频| 91久久一区二区| 成人午夜在线视频| 久久精品99国产精品日本| 亚洲精品久久嫩草网站秘色| 国产欧美一区二区精品仙草咪| 欧美日韩亚洲国产综合| av中文字幕一区| 国产mv日韩mv欧美| 极品美女销魂一区二区三区 | 久久99久久久欧美国产| 午夜精品久久久久久久久久| 1024国产精品| 国产精品久久久久桃色tv| 久久久久国产精品麻豆ai换脸| 91精品国产一区二区三区蜜臀| 欧美天堂一区二区三区| 在线看日韩精品电影| 91丨porny丨首页| 99久久精品国产观看| 成人爽a毛片一区二区免费| 国产成人自拍高清视频在线免费播放| 毛片av一区二区| 蜜桃久久久久久| 欧美aaa在线| 喷水一区二区三区| 蜜臀av一区二区三区| 日韩成人午夜电影| 水野朝阳av一区二区三区| 日韩av在线播放中文字幕| 日本人妖一区二区| 久久99热99| 国产高清一区日本| 不卡的av网站| 91激情在线视频| 欧美日韩国产大片| 日韩一区二区麻豆国产| 日韩欧美亚洲国产精品字幕久久久| 日韩一级高清毛片| 精品理论电影在线| 久久久五月婷婷| 国产精品护士白丝一区av| 亚洲品质自拍视频| 亚洲高清中文字幕| 日本欧美一区二区三区乱码| 日本成人在线网站| 国产在线播放一区三区四| 国产精品 欧美精品| 91在线云播放| 欧美高清性hdvideosex| 欧美精品一区二区久久久| 国产精品全国免费观看高清 | 欧美日韩国产在线播放网站| 91麻豆精品国产91久久久使用方法| 日韩丝袜情趣美女图片| 久久久久国产一区二区三区四区| 国产精品每日更新在线播放网址| 久久一区二区视频| 久久久午夜精品| 亚洲精品国产无天堂网2021 | 亚洲视频一区二区免费在线观看| 亚洲一区二区三区在线播放| 蜜臀av性久久久久蜜臀av麻豆| 国产精品一品视频| 欧美性大战久久| 久久久久久免费网| 亚洲最大的成人av| 国产一区二区三区四区五区美女| 91美女在线视频| 日韩欧美的一区二区| 成人欧美一区二区三区白人| 亚洲成人黄色小说| 国产成人一区在线| 欧美中文一区二区三区| 久久久www成人免费毛片麻豆| 久久99久久久久久久久久久| 午夜国产不卡在线观看视频| 处破女av一区二区| 欧美一区二区三区视频在线观看| 国产精品久久久久aaaa| 奇米影视7777精品一区二区| 91视频在线看| 国产亚洲视频系列| 日韩精品乱码av一区二区| 粉嫩13p一区二区三区| 日韩一本二本av| 一个色在线综合| 成人美女在线观看| 亚洲精品一区二区三区99| 亚洲国产精品久久久男人的天堂| 国产91对白在线观看九色| 日韩一区二区三区视频| 一区二区三区小说| 国产xxx精品视频大全| 日韩欧美在线不卡| 亚洲高清视频的网址| 972aa.com艺术欧美| 久久精品一二三| 性感美女极品91精品| 91啪在线观看| 国产精品国产馆在线真实露脸| 国产一区二区三区四区在线观看 | 中文字幕日韩精品一区| 狠狠色狠狠色综合系列| 欧美一级在线观看| 午夜精品久久久久影视| 欧洲国产伦久久久久久久| 中文字幕在线观看不卡| 国产精品91xxx| 精品国精品自拍自在线| 麻豆91小视频| 日韩一区二区在线观看视频播放| 亚洲国产wwwccc36天堂| 在线日韩av片| 亚洲精品视频免费看| 99精品1区2区| 中文字幕亚洲在| 色综合亚洲欧洲| 亚洲情趣在线观看| 91久久精品一区二区二区| 亚洲乱码国产乱码精品精可以看 | 亚洲国产wwwccc36天堂| 欧洲一区二区三区在线| 亚洲伦理在线免费看| 欧洲av一区二区嗯嗯嗯啊| 一区二区三区日韩| 欧美亚洲综合久久| 一区二区三区**美女毛片| 色久优优欧美色久优优| 亚洲综合视频在线| 欧美日韩一区 二区 三区 久久精品| 亚洲综合色成人| 欧美精品v日韩精品v韩国精品v| 亚洲国产成人精品视频| 88在线观看91蜜桃国自产| 毛片av一区二区| 欧美精品一区二| 国产成人精品免费看| 亚洲视频综合在线| 欧美性感一类影片在线播放| 日韩经典一区二区| 精品欧美一区二区在线观看| 国产suv精品一区二区883| 中文字幕一区在线| 色综合天天性综合| 亚洲一二三四久久| 91精品国产综合久久久蜜臀图片 | 91在线丨porny丨国产| 亚洲精品成人精品456| 欧美精品vⅰdeose4hd| 国内精品自线一区二区三区视频| 欧美极品少妇xxxxⅹ高跟鞋| 91美女片黄在线观看91美女| 午夜视频久久久久久| 欧美一级久久久久久久大片| 国产一区二区网址| 亚洲手机成人高清视频| 欧美电影一区二区三区| 国产精品资源在线| 亚洲欧美色综合| 日韩欧美国产一二三区| 成人夜色视频网站在线观看| 亚洲成人激情自拍| 国产亚洲一区二区三区四区| 欧美午夜精品免费| 麻豆免费精品视频| 日韩理论在线观看| 欧美一卡二卡在线| 99re这里只有精品首页| 日韩av成人高清| 成人欧美一区二区三区视频网页| 91精品啪在线观看国产60岁| 国产美女在线观看一区| 亚洲美女屁股眼交3| 2020日本不卡一区二区视频| 日本高清不卡在线观看| 国产精品羞羞答答xxdd| 午夜婷婷国产麻豆精品| 亚洲国产精品国自产拍av| 制服.丝袜.亚洲.中文.综合| 成人aaaa免费全部观看| 激情综合色综合久久| 亚洲成人激情社区| 亚洲色大成网站www久久九九| 亚洲精品一线二线三线|