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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? inprotocol.java

?? 手機(jī)郵箱撒的方式方式方式的
?? JAVA
?? 第 1 頁 / 共 5 頁
字號(hào):
                }                //parse body parts headers                //it it has different bodypart's boundary than the actual boundary then its encapsulated email type                String tmpBoundary = parseBodyPartHeader(actuallyParsedBodyPart.getHeader());                  if (DEBUG) System.out.println("DEBUG InProtocol.parseBodyOfMultipartMessage - tmpBoundary=" + tmpBoundary);                if (tmpBoundary != null && !tmpBoundary.equals(bodyBoundary)) {                	  // we have new boundary                	  // 1.) add old boundary to "stack"                	  if (DEBUG) System.out.println( "DEBUG InProtocol.parseBodyOfMultipartMessage - adding boundary: " + bodyBoundary );                	boundaries.push( bodyBoundary );                    bodyBoundary = tmpBoundary;                }            } else {                if (redownloaded) {                    break;                }                redownloaded = true;                //if its IMAP and redownloading a particular bodypart                //then by executing BODY"+"["+reDownloadMode+"] we reach to the right bodypart                actualBPNumber = reDownloadMode;                //make a copy, don't call parseBodyPartHeader(bp) as IMAP protocol reach to data directly already                if (runMode == CONVERT_BODY) {                	actuallyParsedBodyPart = header.getBodyPart(actualBPNumber);                	actuallyParsedBodyPart.createConvertedContentStorage();                	actuallyParsedBodyPart.switchToConvertedContent();                        if (DEBUG) {                             System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - CONTENTSTORAGE==null: ");                            System.out.println(actuallyParsedBodyPart.getStorage() == null);                        }                }                else {                   	actuallyParsedBodyPart = new BodyPart(header, header.getBodyPart(actualBPNumber).getHeader());                }                connection.unGetLine(); //return back the first bodypart's data line            }            //now its bodyparts content, fetch to the boundary            line = connection.getLine();              if (DEBUG) {            	  System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - line='" + line + "'");            	  System.out.println(", bodyBoundary " + bodyBoundary);              }            wasStopped = false;            long bodyPartSize = 0;            while ( ! line.startsWith(bodyBoundary) && !line.startsWith(END_OF_MAIL) &&  (line.indexOf("OK Success") == -1)) {            	++linesCount;                bodyPartSize += line.length();                if (stopDownloadingBodyPart(progress, bodyPartSize, linesCount)) {                    handleNotSuccesfullyDownloaded(actuallyParsedBodyPart);                    wasStopped = true;                    break;                }                try {                	if (runMode != CONVERT_BODY) {                		actuallyParsedBodyPart.getStorage().addToContentBuffered(line);                	}                	else {                	    System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - adding to converted storage");						// set temporary encoding for converted bodypart						//byte enc = actuallyParsedBodyPart.getHeader().getEncoding();						// TODO: maybe when it is pdf bodypart, it should be not saved as raw						//actuallyParsedBodyPart.getHeader().setEncoding(BodyPart.ENC_NORMAL);						// save converted bodypart content                		actuallyParsedBodyPart.getStorage().addToContentBuffered(line);                		// set original encoding for bodypart                		//actuallyParsedBodyPart.getHeader().setEncoding(enc);                	}                } catch (Throwable t) {                    t.printStackTrace();                    if (DEBUG) { System.out.println("DEBUG InProtocol.parseBodyOfMultipartMessage - Error 1"); }                    //something's gone wrong during the saving process                    displayAlertIfFetchingBodyFailed(actuallyParsedBodyPart, progress);                    handleNotSuccesfullyDownloaded(actuallyParsedBodyPart);                    break;                }                if (runMode != GET_NEW_MAILS) {                    progress.incActual(line.length());                }                line = connection.getLine();                  if (DEBUG) {                	  System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - line='" + line + "'");                	  System.out.println(", bodyBoundary " + bodyBoundary);                  }            }                        if ( line.startsWith( bodyBoundary + "--" ) && !boundaries.isEmpty() ) {                  if (DEBUG) System.out.println( "DEBUG InProtocol.parseBodyOfMultipartMessage - removing boundary: " + bodyBoundary );            	bodyBoundary = (String)boundaries.pop();          	      if (DEBUG) System.out.println( "DEBUG InProtocol.parseBodyOfMultipartMessage - new body boundary: " + bodyBoundary );            }            try {                if (!wasStopped) {                    if (DEBUG) { System.out.println("DEBUG InProtocol.parseBodyOfMultipartMessage - FLUSHING BUFFER"); }                    actuallyParsedBodyPart.getStorage().flushBuffer();                }            	if (runMode == CONVERT_BODY ) {                    if (DEBUG) { System.out.println("DEBUG InProtocol.parseBodyOfMultipartMessage - hash="+actuallyParsedBodyPart.hashCode()); }                    synchronized (actuallyParsedBodyPart) {                        if (DEBUG) { System.out.println("DEBUG InProtocol.parseBodyOfMultipartMessage - NOTIFYING"); }                        actuallyParsedBodyPart.notify();                    }            	}            } catch (Throwable t) {                t.printStackTrace();                if (DEBUG) { System.out.println("DEBUG InProtocol.parseBodyOfMultipartMessage - Error 2"); }                displayAlertIfFetchingBodyFailed(actuallyParsedBodyPart, progress);                handleNotSuccesfullyDownloaded(actuallyParsedBodyPart);            }            //now lets save the bodypart\\            actuallyParsedBodyPart.setOrder(actualBPNumber);            //redownloading and new bodypart that was successfully saved to the DB and replacing the old bodypart            if (runMode == REDOWNLOAD_BODY && actuallyParsedBodyPart.atLeastPartial()  && isBigger(header, actuallyParsedBodyPart)) {                byte old = 0;                //markAsDeleted the old bodypart from DB                for (old = (byte) (header.getBodyPartCount() - 1); old >= 0; --old) {                    if (header.getBpOriginalOrder(old) == actuallyParsedBodyPart.getOrder()) {                        header.getBodyPart(old).getStorage().deleteContent();                        break;                    }                }                header.replaceBodyPart(actuallyParsedBodyPart, old); //replace the old one in vector bodyParts            } else if ((runMode != CONVERT_BODY) && (runMode != REDOWNLOAD_BODY || !isInMail(header, actuallyParsedBodyPart))) {                header.insertBodyPartAt(actuallyParsedBodyPart, actualBPNumber); //accept any bodypart - partial, empty, complete            } else if (runMode == REDOWNLOAD_BODY){                actuallyParsedBodyPart.getStorage().deleteContent();            }            if (line.startsWith(endBoundary)) {                //In some bizarre cases END_OF_MAIL can be at the             	//end of the boundary string and not in the next             	//line. That's why we need the following            	//if-statement.                if (line.indexOf(END_OF_MAIL) == -1) {	            	line = connection.getLine();	                  if (DEBUG) System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - line='" + line + "'");	                while ( ! line.startsWith(END_OF_MAIL) ) {	                	line = connection.getLine();	                      if (DEBUG) System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - line='" + line + "'");	                }                }                break;            }            //if it wasn't end boundary but just separating boundary,             //return the boundary line back the buffer            //so it could be detected in the next iteration            connection.unGetLine();            if (stopDownloadingBodyPart(progress, 0, linesCount)) {                wasStopped = true;                break;            }              // get next line            line = connection.getLine();              if (DEBUG) System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - line='" + line + "'");                        if (runMode == CONVERT_BODY) {              actuallyParsedBodyPart.switchToNotConvertedContent();          }        }        if (runMode == CONVERT_BODY) {            actuallyParsedBodyPart.switchToNotConvertedContent();        }        if (!wasStopped && " FLAGS (".equals(END_OF_MAIL)) //parse FLAGS parameter        {        	connection.unGetLine();        	line = connection.getLine();              if (DEBUG) System.out.print("DEBUG InProtocol.parseBodyOfMultipartMessage - line='" + line + "'");            handleLineWithFlags(line);        }    }    private void parseBodyOfPlainMessage(MessageHeader header, StoppableProgress progress) throws MyException, MyException {        String line;        int linesCount = 0;        BodyPart.Header bpHeader;        //body part header was created already by parseHeader() - when retrieving header and body at once        if (header.getBodyPartCount() != 0 && runMode != REDOWNLOAD_BODY) {            actuallyParsedBodyPart = header.getBodyPart((byte) 0);        } else if (account.getType() == MailAccount.IMAP && reDownloadMode != -1) {            actuallyParsedBodyPart = new BodyPart(header, header.getBodyPart(0).getHeader());        } else {            //downloading or redownloading the whole mail            bpHeader = new BodyPart.Header();            actuallyParsedBodyPart = new BodyPart(header, bpHeader);            parseBodyPartHeader(bpHeader);            if (DEBUG) { System.out.println("DEBUG InProtocol.parseBodyOfPlainMessage - body part header parsed 1"); }        }        //take all the rest        long bodyPartSize = 0;        boolean fetchingStopped = false; // true if fetching of body was stopped        while (!(line = connection.getLine()).startsWith(END_OF_MAIL) && (line.indexOf("OK Success") == -1)) {            ++linesCount;            bodyPartSize += line.length();            if (stopDownloadingBodyPart(progress, bodyPartSize, linesCount)) {                handleNotSuccesfullyDownloaded(actuallyParsedBodyPart);                fetchingStopped = true;                break;            }            if (DEBUG) System.out.println("DEBUG InProtocol.parseBodyOfPlainMessage - this bodypart should be saved.");                        try {                actuallyParsedBodyPart.getStorage().addToContentBuffered(line);            } catch (Exception e) {                if (DEBUG) { System.out.println("DEBUG InProtocol.parseBodyOfPlainMessage - body part parsed 4"); }                //something's gone wrong during the saving process                displayAlertIfFetchingBodyFailed(actuallyParsedBodyPart, progress);                handleNotSuccesfullyDownloaded(actuallyParsedBodyPart);            }                     //increase the counter of downloaded mails only when we're downloading mail body            if (runMode != GET_NEW_MAILS) {                progress.incActual(line.length());            }        }        if (!fetchingStopped && " FLAGS (".equals(END_OF_MAIL)) //parse FLAGS parameter        {            handleLineWithFlags(line);        }        try {                actuallyParsedBodyPart.getStorage().flushBuffer();            } catch (Exception ex) {                ex.printStackTrace();                displayAlertIfFetchingBodyFailed(actuallyParsedBodyPart, progress);                handleNotSuccesfullyDownloaded(actuallyParsedBodyPart);            }                //redownloading the mail and its body part is saved to the DB        if (runMode == REDOWNLOAD_BODY && actuallyParsedBodyPart.atLeastPartial() && isBigger(header, actuallyParsedBodyPart)) {            //markAsDeleted the old bodypart from DB            header.getBodyPart((byte) 0).getStorage().deleteContent();            header.replaceBody(actuallyParsedBodyPart); // replace the old one        } else if (header.getBodyPartCount() == 0) {            header.addBodyPart(actuallyParsedBodyPart);        } else {            actuallyParsedBodyPart.getStorage().deleteContent();        }        if (DEBUG) { System.out.println("DEBUG InProtocol.parseBodyOfPlainMessage - body part parsed 4"); }    }    /**     * <p>Returns value for the "boundary" parameter in passed line staring     * at the position <code>index</code> in the line.</p>     *      * <p>Handles cases like:     * <ul>     * <li>boundary=value (returns value)</li>     * <li>boundary="value" (returns value)</li>     * <li>boundary="value"; (returns value)</li>     * </ul>     * </p>     *      * @param index position in line where the boundary parameter name starts     * @param line where to find the boundary parameter value in     * @return boundary parameter value     */    private String getBoundaryParamValue( final int index, final String line ) {		String boundaryValue = line.substring( index + 9 ).trim(); // 9="boundary=".length()          // if boundary value is quoted: "value" -> value		if (boundaryValue.charAt(0) == '"') {			boundaryValue = boundaryValue.substring(1, boundaryValue.indexOf('"', 2));		}          // if there is semicolon at the end, remove it		int semicolonIndex = boundaryValue.indexOf(';');		if (semicolonIndex != -1) {			boundaryValue = boundaryValue.substring(0, semicolonIndex);		}		return boundaryValue;	}    /**     * <p>Parses the lines in the header of email which begins with the word     * content.</p>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久9热精品视频| 久久久国际精品| 91美女蜜桃在线| 菠萝蜜视频在线观看一区| 激情文学综合网| 国产一区二区三区日韩| 美女脱光内衣内裤视频久久影院| 香蕉av福利精品导航| 亚洲最大成人综合| 亚洲一区二区三区四区在线免费观看 | 一区在线中文字幕| 亚洲日本免费电影| 一级中文字幕一区二区| 亚洲一区二区三区精品在线| 亚洲二区在线观看| 麻豆国产精品777777在线| 精品一区二区三区视频| 国产成人精品免费网站| 99精品国产热久久91蜜凸| 色综合天天天天做夜夜夜夜做| 91女厕偷拍女厕偷拍高清| 欧美三级中文字幕在线观看| 91精品中文字幕一区二区三区| 日韩精品一区二区三区在线| 国产午夜精品一区二区| 亚洲免费观看高清完整版在线| 一区二区理论电影在线观看| 天天色综合成人网| 国产成人精品免费在线| 91啪亚洲精品| 欧美天堂亚洲电影院在线播放| 欧美日韩精品欧美日韩精品一综合| 日韩一区二区不卡| 亚洲三级电影网站| 久久精品国产精品亚洲红杏| 99久久精品99国产精品| 日韩亚洲国产中文字幕欧美| 中文字幕一区二区三区四区不卡 | 欧美精品欧美精品系列| 国产亚洲精品中文字幕| 亚洲成人手机在线| 成人在线视频一区二区| 日韩三级电影网址| 亚洲国产一二三| hitomi一区二区三区精品| 欧美一区二区三区不卡| 亚洲美女淫视频| 国产成人免费在线观看| 97久久超碰国产精品电影| 日韩欧美自拍偷拍| 亚洲成av人片一区二区三区| www.日韩av| 日本一区二区久久| 日本vs亚洲vs韩国一区三区二区 | 欧美成人vps| 国产精品久久久久久户外露出| 国产精品―色哟哟| 久久国产精品99精品国产| 成人免费av在线| 日韩女优视频免费观看| 国产欧美日韩亚州综合| 国产精品久久免费看| 免费高清成人在线| 91在线精品一区二区| 7777精品久久久大香线蕉| 亚洲精品成a人| 麻豆成人91精品二区三区| 国产成人午夜精品5599| 久久综合久久鬼色| 中文字幕一区二区在线播放| 久久精品国产99| 欧美日韩精品福利| 国产视频一区二区三区在线观看 | 亚洲综合久久久| 成人动漫一区二区| 欧美一区二区三区在| 午夜私人影院久久久久| av成人老司机| 色香色香欲天天天影视综合网| 国产精品美女视频| 久久成人麻豆午夜电影| 麻豆久久一区二区| 欧美亚洲动漫另类| 一区在线播放视频| 欧美三级电影在线看| 国产精品久久午夜夜伦鲁鲁| 美腿丝袜亚洲综合| 久久先锋影音av鲁色资源| 日韩成人免费电影| 成人免费视频一区二区| 欧美精品一区二区三区蜜桃视频| 亚洲综合精品自拍| 精品美女在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 欧美精品一卡两卡| 国产一区二区伦理| 2017欧美狠狠色| 日本不卡一二三| 欧美岛国在线观看| 美女尤物国产一区| 国产精品萝li| 成人av在线资源| 日韩精品一区二区三区四区视频| 国产成人高清视频| 国产欧美日韩亚州综合 | 99久久精品免费看| 精品电影一区二区三区| 自拍av一区二区三区| 欧美日韩五月天| 一区二区三区在线免费视频 | 亚洲成av人在线观看| 欧美日韩大陆在线| 性做久久久久久久久| 国产精品你懂的在线| 黄色日韩三级电影| 久久午夜电影网| 欧美久久久影院| 久久国产精品露脸对白| 中文字幕精品一区二区精品绿巨人| 国产在线观看一区二区| 亚洲国产精品成人久久综合一区| 欧美日韩午夜影院| 麻豆成人久久精品二区三区小说| 欧美中文一区二区三区| 国精产品一区一区三区mba桃花| 在线综合亚洲欧美在线视频| 亚洲女同一区二区| 欧美日韩高清不卡| 首页国产欧美久久| 亚洲欧美色一区| 欧美日韩国产综合视频在线观看 | 欧美视频一二三区| av不卡在线播放| 亚洲成人动漫在线观看| 欧美一区二区在线观看| 精品视频在线免费看| 久久99精品久久久久久国产越南| 欧美午夜在线观看| 91网站最新网址| 日韩激情视频在线观看| 亚洲一区二区三区视频在线| 欧美成人三级电影在线| 91精品一区二区三区在线观看| 国产福利精品一区二区| 亚洲尤物视频在线| 欧美激情在线一区二区| 欧美一卡二卡三卡| 一本一道综合狠狠老| 国产一区二区精品久久91| 亚洲三级在线免费观看| 国产精品对白交换视频| 欧美精品在线一区二区三区| 国产传媒欧美日韩成人| 精品无码三级在线观看视频| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 91精品国模一区二区三区| 国产精品一品二品| 亚洲男帅同性gay1069| 夜夜亚洲天天久久| 99久久亚洲一区二区三区青草| 夜夜精品浪潮av一区二区三区| 亚洲你懂的在线视频| 欧美性感一类影片在线播放| av一二三不卡影片| 日本成人在线网站| 国产香蕉久久精品综合网| 欧美一区二区三区白人| 91香蕉国产在线观看软件| 91啪亚洲精品| av亚洲精华国产精华| 天天综合天天综合色| 免费一级片91| 亚洲无人区一区| 国产一区二三区好的| 午夜电影一区二区| 亚洲一区二区三区中文字幕 | 成人亚洲精品久久久久软件| 美女国产一区二区三区| 亚欧色一区w666天堂| 国产精品久久久久久久久久久免费看 | 亚洲欧美另类久久久精品| 欧美一卡2卡3卡4卡| 中文字幕欧美日韩一区| 欧美激情中文不卡| 亚洲午夜成aⅴ人片| 亚洲一区二区在线播放相泽 | 6080午夜不卡| 91国偷自产一区二区三区观看| 欧美一区二区福利在线| 欧美一区二区女人| 久久久久国产成人精品亚洲午夜| 精品理论电影在线| 国产99一区视频免费| 色综合视频在线观看| 麻豆视频一区二区| 亚洲欧洲精品一区二区三区| 麻豆精品新av中文字幕| 美女高潮久久久| 国产电影精品久久禁18| 国产91色综合久久免费分享|