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

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

?? qpdecoderstream.java

?? java Email you can use it to send email to others
?? JAVA
字號:
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License").  You * may not use this file except in compliance with the License. You can obtain * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html * or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt. * Sun designates this particular file as subject to the "Classpath" exception * as provided by Sun in the GPL Version 2 section of the License file that * accompanied this code.  If applicable, add the following below the License * Header, with the fields enclosed by brackets [] replaced by your own * identifying information: "Portions Copyrighted [year] * [name of copyright owner]" * * Contributor(s): * * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license."  If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above.  However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. *//* * @(#)QPDecoderStream.java	1.11 07/05/04 */package com.sun.mail.util;import java.io.*;/** * This class implements a QP Decoder. It is implemented as * a FilterInputStream, so one can just wrap this class around * any input stream and read bytes from this filter. The decoding * is done as the bytes are read out. *  * @author John Mani */public class QPDecoderStream extends FilterInputStream {    protected byte[] ba = new byte[2];    protected int spaces = 0;    /**     * Create a Quoted Printable decoder that decodes the specified      * input stream.     * @param in        the input stream     */    public QPDecoderStream(InputStream in) {	super(new PushbackInputStream(in, 2)); // pushback of size=2    }    /**     * Read the next decoded byte from this input stream. The byte     * is returned as an <code>int</code> in the range <code>0</code>     * to <code>255</code>. If no byte is available because the end of     * the stream has been reached, the value <code>-1</code> is returned.     * This method blocks until input data is available, the end of the     * stream is detected, or an exception is thrown.     *     * @return     the next byte of data, or <code>-1</code> if the end of the     *             stream is reached.     * @exception  IOException  if an I/O error occurs.     */    public int read() throws IOException {	if (spaces > 0) {	    // We have cached space characters, return one	    spaces--;	    return ' ';	}		int c = in.read();	if (c == ' ') { 	    // Got space, keep reading till we get a non-space char	    while ((c = in.read()) == ' ')		spaces++;	    if (c == '\r' || c == '\n' || c == -1)		// If the non-space char is CR/LF/EOF, the spaces we got	    	// so far is junk introduced during transport. Junk 'em.		spaces = 0;    	    else {		// The non-space char is NOT CR/LF, the spaces are valid.		((PushbackInputStream)in).unread(c);		c = ' ';	    }	    return c; // return either <SPACE> or <CR/LF>	}	else if (c == '=') {	    // QP Encoded atom. Decode the next two bytes	    int a = in.read();	    if (a == '\n') {		/* Hmm ... not really confirming QP encoding, but lets		 * allow this as a LF terminated encoded line .. and		 * consider this a soft linebreak and recurse to fetch 		 * the next char.		 */		return read();	    } else if (a == '\r') {		// Expecting LF. This forms a soft linebreak to be ignored.		int b = in.read();		if (b != '\n') 		    /* Not really confirming QP encoding, but		     * lets allow this as well.		     */		    ((PushbackInputStream)in).unread(b);		return read();	    } else if (a == -1) {	   	// Not valid QP encoding, but we be nice and tolerant here !		return -1;	    } else {		ba[0] = (byte)a;		ba[1] = (byte)in.read();		try {		    return ASCIIUtility.parseInt(ba, 0, 2, 16);		} catch (NumberFormatException nex) {		    /*		    System.err.println(		     	"Illegal characters in QP encoded stream: " + 		     	ASCIIUtility.toString(ba, 0, 2)		    );		    */		    ((PushbackInputStream)in).unread(ba);		    return c;		}	    }	}	return c;    }    /**     * Reads up to <code>len</code> decoded bytes of data from this input stream     * into an array of bytes. This method blocks until some input is     * available.     * <p>     *     * @param      buf   the buffer into which the data is read.     * @param      off   the start offset of the data.     * @param      len   the maximum number of bytes read.     * @return     the total number of bytes read into the buffer, or     *             <code>-1</code> if there is no more data because the end of     *             the stream has been reached.     * @exception  IOException  if an I/O error occurs.     */    public int read(byte[] buf, int off, int len) throws IOException {	int i, c;	for (i = 0; i < len; i++) {	    if ((c = read()) == -1) {		if (i == 0) // At end of stream, so we should		    i = -1; // return -1 , NOT 0.		break;	    }	    buf[off+i] = (byte)c;	}        return i;    }    /**     * Tests if this input stream supports marks. Currently this class     * does not support marks     */    public boolean markSupported() {	return false;    }    /**     * Returns the number of bytes that can be read from this input     * stream without blocking. The QP algorithm does not permit     * a priori knowledge of the number of bytes after decoding, so     * this method just invokes the <code>available</code> method     * of the original input stream.     */    public int available() throws IOException {	// This is bogus ! We don't really know how much	// bytes are available *after* decoding	return in.available();    }    /**** begin TEST program    public static void main(String argv[]) throws Exception {        FileInputStream infile = new FileInputStream(argv[0]);        QPDecoderStream decoder = new QPDecoderStream(infile);        int c;         while ((c = decoder.read()) != -1)            System.out.print((char)c);        System.out.println();    }    *** end TEST program ****/}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产精品专区| 亚洲免费伊人电影| 欧美日本高清视频在线观看| 97精品电影院| 日本韩国一区二区三区视频| 91丝袜美腿高跟国产极品老师 | 精彩视频一区二区| 美女高潮久久久| 精品写真视频在线观看| 久久69国产一区二区蜜臀 | 久久久久久久久久久久久女国产乱 | 久久久午夜电影| 国产视频一区二区三区在线观看| 国产欧美一区二区精品久导航| 国产欧美精品一区二区色综合| 国产精品卡一卡二卡三| 亚洲黄色免费网站| 蜜桃精品视频在线| 成人久久视频在线观看| 色噜噜狠狠成人中文综合| 欧美人妇做爰xxxⅹ性高电影| 日韩久久久久久| 欧美国产欧美综合| 亚洲五月六月丁香激情| 精品一区二区三区免费观看| 成人av电影观看| 欧美精品精品一区| 日本一区二区三区视频视频| 亚洲国产成人va在线观看天堂| 精品综合久久久久久8888| 国产成人免费视频网站高清观看视频 | 精品国产伦一区二区三区观看体验| 国产日韩三级在线| 亚洲午夜成aⅴ人片| 国产成人夜色高潮福利影视| 色综合天天综合狠狠| 日韩欧美卡一卡二| 亚洲欧美日韩在线| 激情五月婷婷综合| 欧美午夜理伦三级在线观看| 久久综合久久久久88| 亚洲韩国精品一区| 成人av电影在线播放| 日韩一区二区中文字幕| 1区2区3区国产精品| 国内久久精品视频| 777久久久精品| 亚洲欧美日韩国产综合在线| 国产精品一区二区在线观看不卡 | 91国内精品野花午夜精品| 欧美videos中文字幕| 亚洲一区二区偷拍精品| bt7086福利一区国产| 久久综合成人精品亚洲另类欧美| 亚洲一线二线三线久久久| 国产毛片精品国产一区二区三区| 91麻豆精品国产91| 亚洲综合一二三区| 99精品视频一区| 国产精品美女一区二区| 国产一区二区精品久久| 欧美成人aa大片| 麻豆中文一区二区| 欧美二区乱c少妇| 五月婷婷色综合| 91精品欧美综合在线观看最新| 一区二区三区四区av| 99re热视频精品| 中文字幕国产一区| 成人激情图片网| 中文字幕亚洲精品在线观看| av福利精品导航| 国产精品成人一区二区三区夜夜夜| 国产麻豆午夜三级精品| 精品久久久久久最新网址| 蜜臀精品久久久久久蜜臀 | 国产精品一区二区久久不卡 | 欧美一区欧美二区| 亚洲国产乱码最新视频 | 99久久免费精品| 一区二区三区在线视频免费| 欧美在线视频全部完| 婷婷久久综合九色综合绿巨人| 欧美丰满一区二区免费视频| 捆绑调教一区二区三区| 久久综合九色综合97_久久久| 国产成人av电影在线播放| 国产精品免费人成网站| 色94色欧美sute亚洲线路二| 一区二区三区高清在线| 欧美一区欧美二区| 国产精品一区专区| 亚洲欧美激情一区二区| 欧美日韩一级二级| 奇米777欧美一区二区| 26uuu精品一区二区在线观看| 国产精品综合二区| 亚洲视频香蕉人妖| 在线成人免费观看| 国产一级精品在线| 亚洲宅男天堂在线观看无病毒| 制服丝袜中文字幕一区| 国产福利不卡视频| 一区二区日韩av| 久久女同精品一区二区| 91亚洲精品久久久蜜桃网站| 午夜欧美在线一二页| 久久久精品国产免费观看同学| 91免费观看在线| 国内精品伊人久久久久av一坑| 亚洲欧洲av另类| 欧美大白屁股肥臀xxxxxx| 成人av动漫在线| 久久av资源站| 午夜a成v人精品| 国产精品美女www爽爽爽| 日韩一区二区三区在线| a美女胸又www黄视频久久| 蜜桃视频在线一区| 亚洲精品视频在线看| 欧美tickle裸体挠脚心vk| 欧美性videosxxxxx| 国产xxx精品视频大全| 日韩国产精品久久| 亚洲女同女同女同女同女同69| 精品999在线播放| 欧美日韩国产综合一区二区三区| 成人黄色综合网站| 国产在线一区二区综合免费视频| 亚洲高清视频中文字幕| 中文字幕佐山爱一区二区免费| 久久久久久久综合狠狠综合| 在线播放/欧美激情| 色成人在线视频| 色综合色狠狠天天综合色| 国产精品一区三区| 美女精品一区二区| 午夜天堂影视香蕉久久| 亚洲综合在线观看视频| 亚洲精品大片www| 亚洲欧美欧美一区二区三区| 中文字幕一区二区三区视频| 国产蜜臀av在线一区二区三区 | eeuss鲁一区二区三区| 国产乱子伦视频一区二区三区 | 精品亚洲porn| 黄网站免费久久| 国产自产高清不卡| 狠狠色狠狠色合久久伊人| 美女视频网站久久| 久久99国产精品成人| 激情小说欧美图片| 国产精品中文有码| 成人综合婷婷国产精品久久| 风间由美一区二区av101| 国产91精品一区二区麻豆网站| 国产精品一区二区三区四区| 国产精品亚洲专一区二区三区 | 欧美色图天堂网| 欧美吻胸吃奶大尺度电影| 日本二三区不卡| 欧美优质美女网站| 欧美日韩dvd在线观看| 91麻豆精品国产91久久久更新时间| 欧美精品v国产精品v日韩精品| 欧美日韩国产成人在线免费| 91精品蜜臀在线一区尤物| 日韩欧美精品在线视频| 久久久久久综合| 亚洲欧美日韩电影| 爽爽淫人综合网网站| 久久99热这里只有精品| 国产成人在线网站| 欧美在线观看视频一区二区| 91麻豆精品国产综合久久久久久| 精品久久久久久久久久久久包黑料| 国产亚洲成av人在线观看导航 | 欧美人伦禁忌dvd放荡欲情| 欧美一区日韩一区| 国产精品伦理一区二区| 午夜激情一区二区三区| 国产主播一区二区| 欧美伊人久久久久久午夜久久久久| 欧美一区二区成人6969| 久久久不卡影院| 婷婷六月综合网| 国产.欧美.日韩| 欧美在线你懂的| 国产欧美日韩一区二区三区在线观看| 亚洲男人的天堂一区二区| 日韩国产精品大片| 91香蕉视频mp4| 精品国产乱码久久久久久免费| 亚洲色图一区二区| 国产综合久久久久影院| 欧美日韩一卡二卡三卡| 国产精品久久久久一区二区三区| 毛片av一区二区| 欧美日韩精品一区二区天天拍小说 | 日韩欧美资源站|