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

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

?? maildateformat.java

?? java Email you can use it to send email to others
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/** * Helper class to deal with parsing the characters */class MailDateParser {        int index = 0;    char[] orig = null;    public MailDateParser(char[] orig) {	this.orig = orig;    }    /**     * skips chars until it finds a number (0-9)     *     * if it does not find a number, it will throw     * an ArrayIndexOutOfBoundsException     */	    public void skipUntilNumber() throws ParseException {	try {	    while (true) {		switch ( orig[index] ) {		case '0':		case '1':		case '2':		case '3':		case '4':		case '5':		case '6':		case '7':		case '8':		case '9':		    return;						default:		    index++;		    break;			}	    }	} catch (ArrayIndexOutOfBoundsException e) {	    throw new ParseException("No Number Found", index);	}    }    /**     * skips any number of tabs, spaces, CR, and LF - folding whitespace     */    public void skipWhiteSpace() {	int len = orig.length;	while (index < len) {	    switch (orig[index]) {	    case ' ': // space	    case '\t': // tab	    case '\r': // CR	    case '\n': // LF		index++;		break;						    default:		return;	    }		}    }    /**     * used to look at the next character without "parsing" that     * character.     */    public int peekChar() throws ParseException {	if (index < orig.length)	    return orig[index];	else	    throw new ParseException("No more characters", index);    }	    /**     * skips the given character.  if the current char does not     * match a ParseException will be thrown     */    public void skipChar(char c) throws ParseException {	if (index < orig.length) {	    if (orig[index] == c) {		index++;	    } else {		throw new ParseException("Wrong char", index);	    }	} else {	    throw new ParseException("No more characters", index);	}    }    /**     * will only skip the current char if it matches the given     * char     */    public boolean skipIfChar(char c) throws ParseException {	if (index < orig.length) {	    if (orig[index] == c) {		index++;		return true;	    } else {		return false;	    }	} else {	    throw new ParseException("No more characters", index);	}    }   	    /**     * current char must point to a number.  the number will be     * parsed and the resulting number will be returned.  if a     * number is not found, a ParseException will be thrown     */    public int parseNumber() throws ParseException {	int length = orig.length;	boolean gotNum = false;	int result = 0;					while (index < length) {	    switch( orig[index] ) {		case '0':		    result *= 10;		    gotNum = true;		    break;		    		case '1':		    result = result * 10 + 1;		    gotNum = true;		    break;		    		case '2':		    result = result * 10 + 2;		    gotNum = true;		    break;		    		case '3':		    result = result * 10 + 3;		    gotNum = true;		    break;		    		case '4':		    result = result * 10 + 4;		    gotNum = true;		    break;		    		case '5':		    result = result * 10 + 5;		    gotNum = true;		    break;		    		case '6':		    result = result * 10 + 6;		    gotNum = true;		    break;		    		case '7':		    result = result * 10 + 7;		    gotNum = true;		    break;		    		case '8':		    result = result * 10 + 8;		    gotNum = true;		    break;		    		case '9':		    result = result * 10 + 9;		    gotNum = true;		    break;			default:		    if (gotNum)			return result;		    else			throw new ParseException("No Number found", index);	    }	    	    index++;	}			// check the result	if (gotNum)	    return result;				// else, throw a parse error	throw new ParseException("No Number found", index);    }	    /**     * will look for one of "Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dev"     * and return the numerical version of the month. (0-11).  a ParseException     * error is thrown if a month cannot be found.     */    public int parseMonth() throws ParseException {	char curr;			try {	    switch(orig[index++]) {	    case 'J':	    case 'j': // "Jan" (0) /  "Jun" (5) /  "Jul" (6)		// check next char		switch(orig[index++]) {		case 'A':		case 'a':		    curr = orig[index++];		    if (curr == 'N' || curr == 'n') {			return 0;		    }		    break;									case 'U':		case 'u':		    curr = orig[index++];		    if (curr == 'N' || curr == 'n') {			return 5;		    } else if (curr == 'L' || curr == 'l') {			return 6;		    }		    break;		}		break;					    case 'F':	    case 'f': // "Feb"		curr = orig[index++];		if (curr == 'E' || curr == 'e') {		    curr = orig[index++];		    if (curr == 'B' || curr == 'b') {			return 1;		    }		}		break;					    case 'M':	    case 'm': // "Mar" (2) /  "May" (4)		curr = orig[index++];		if (curr == 'A' || curr == 'a') {		    curr = orig[index++];		    if (curr == 'R' || curr == 'r') {			return 2;		    } else if (curr == 'Y' || curr == 'y') {			return 4;		    }		}		break;								    case 'A':	    case 'a': // "Apr" (3) /  "Aug" (7)		curr = orig[index++];		if (curr == 'P' || curr == 'p') {		    curr = orig[index++];		    if (curr == 'R' || curr == 'r') {			return 3;		    }		} else if (curr == 'U' || curr == 'u') {		    curr = orig[index++];		    if (curr == 'G' || curr == 'g') {			return 7;		    }		}		break;								    case 'S':	    case 's': // "Sep" (8)		curr = orig[index++];		if (curr == 'E' || curr == 'e') {		    curr = orig[index++];		    if (curr == 'P' || curr == 'p') {			return 8;		    }		}		break;								    case 'O':	    case 'o': // "Oct"		curr = orig[index++];		if (curr == 'C' || curr == 'c') {		    curr = orig[index++];		    if (curr == 'T' || curr == 't') {			return 9;		    }		}		break;								    case 'N':	    case 'n': // "Nov"		curr = orig[index++];		if (curr == 'O' || curr == 'o') {		    curr = orig[index++];		    if (curr == 'V' || curr == 'v') {			return 10;		    }		}		break;				    case 'D':	    case 'd': // "Dec"		curr = orig[index++];		if (curr == 'E' || curr == 'e') {		    curr = orig[index++];		    if (curr == 'C' || curr == 'c') {			return 11;		    }		}		break;		    }	} catch (ArrayIndexOutOfBoundsException e) {	}			throw new ParseException("Bad Month", index);    }	    /**     * will parse the timezone - either Numerical version (e.g. +0800, -0500)     * or the alpha version (e.g. PDT, PST).  the result will be returned in     * minutes needed to be added to the date to bring it to GMT.     */    public int parseTimeZone() throws ParseException {	if (index >= orig.length) 	    throw new ParseException("No more characters", index);			char test = orig[index];	if ( test == '+' || test == '-' ) {	    return parseNumericTimeZone();	} else {	    return parseAlphaTimeZone();	}    }        /**     * will parse the Numerical time zone version (e.g. +0800, -0500)     * the result will be returned in minutes needed to be added     * to the date to bring it to GMT.     */    public int parseNumericTimeZone() throws ParseException {	// we switch the sign if it is a '+'	// since the time in the string we are	// parsing is off from GMT by that amount.	// and we want to get the time back into	// GMT, so we substract it.	boolean switchSign = false;	char first = orig[index++];	if (first == '+') {	    switchSign = true;	} else if (first != '-') {	    throw new ParseException("Bad Numeric TimeZone", index);		}			int tz = parseNumber();	int offset = (tz / 100) * 60  + (tz % 100);	if (switchSign) {	    return -offset;	} else {	    return offset;	}    }    /**     * will parse the alpha time zone version (e.g. PDT, PST).     * the result will be returned in minutes needed to be added     * to the date to bring it to GMT.     */    public int parseAlphaTimeZone() throws ParseException {	int result = 0;	boolean foundCommon = false;	char curr;			try {	    switch(orig[index++]) {	    case 'U':	    case 'u': // "UT"	/	Universal Time		curr = orig[index++];		if (curr == 'T' || curr == 't') {		    result = 0;		    break;		}		throw new ParseException("Bad Alpha TimeZone", index);						    case 'G':	    case 'g': // "GMT" ; Universal Time		curr = orig[index++];		if (curr == 'M' || curr == 'm') {		    curr = orig[index++];		    if (curr == 'T' || curr == 't') {			result = 0;			break;		    }				}		throw new ParseException("Bad Alpha TimeZone", index);							    case 'E':	    case 'e': // "EST" / "EDT" ;  Eastern:  - 5/ - 4		result = 300;		foundCommon = true;		break;						    case 'C':	    case 'c': // "CST" / "CDT" ;  Central:  - 6/ - 5		result = 360;		foundCommon = true;		break;						    case 'M':	    case 'm': // "MST" / "MDT" ;  Mountain: - 7/ - 6		result = 420;		foundCommon = true;		break;						    case 'P':	    case 'p': // "PST" / "PDT" ;  Pacific:  - 8/ - 7 		result = 480;		foundCommon = true;		break;	    default:		throw new ParseException("Bad Alpha TimeZone", index);	    }	} catch (ArrayIndexOutOfBoundsException e) {	    throw new ParseException("Bad Alpha TimeZone", index);	}			if (foundCommon) {	    curr = orig[index++];	    if (curr == 'S' || curr == 's') {		curr = orig[index++];		if (curr != 'T' && curr != 't') {		    throw new ParseException("Bad Alpha TimeZone", index);		}	    } else if (curr == 'D' || curr == 'd') {		curr = orig[index++];		if (curr == 'T' || curr != 't') {		    // for daylight time		    result -= 60;		} else {		    throw new ParseException("Bad Alpha TimeZone", index);		}	    }	}	return result;    }    int getIndex() {	return index;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产**网站演员| 欧美日韩国产美| 男女视频一区二区| 国内精品伊人久久久久av一坑| fc2成人免费人成在线观看播放| 欧美丝袜第三区| 欧美激情一区二区三区蜜桃视频| 秋霞电影网一区二区| 99re免费视频精品全部| 69堂国产成人免费视频| 最近中文字幕一区二区三区| 九色综合国产一区二区三区| 久久97超碰国产精品超碰| 在线视频中文字幕一区二区| 欧美伊人精品成人久久综合97| 国产片一区二区| 国模娜娜一区二区三区| 欧美一区二区三区视频免费播放| 亚洲黄一区二区三区| 亚洲成人福利片| 色8久久人人97超碰香蕉987| 国产精品黄色在线观看| 国产成人av电影在线观看| 精品国产一二三区| 精品一区在线看| 精品入口麻豆88视频| 老司机精品视频一区二区三区| 欧美另类高清zo欧美| 日日摸夜夜添夜夜添精品视频| 欧美日韩视频专区在线播放| 亚洲一区电影777| 欧美三级在线看| 日韩精品一区第一页| 欧美tk—视频vk| 国产乱对白刺激视频不卡| 国产三区在线成人av| av一区二区三区黑人| 1024精品合集| 欧美久久久影院| 亚洲午夜视频在线| 欧美探花视频资源| 奇米色777欧美一区二区| 国产亚洲美州欧州综合国| 色婷婷激情综合| 琪琪久久久久日韩精品| 国产日韩av一区| 欧美影片第一页| 国产一区二区三区免费看| 综合在线观看色| 日韩精品一区二区三区swag| 成人一区二区三区在线观看| 亚洲乱码日产精品bd| 欧美伊人久久大香线蕉综合69| 激情小说亚洲一区| 一区二区三区在线高清| 久久天堂av综合合色蜜桃网| 欧美色中文字幕| 成人a免费在线看| 久久国产精品第一页| 一区二区三区在线观看欧美| 久久蜜桃av一区精品变态类天堂| 色综合天天综合狠狠| 久久精品国产亚洲a| 亚洲国产三级在线| 亚洲视频小说图片| 欧美国产1区2区| 精品久久久久久综合日本欧美| 欧美三级韩国三级日本一级| 风间由美中文字幕在线看视频国产欧美| 午夜成人免费电影| 亚洲少妇最新在线视频| 欧美国产日本韩| 欧美一级理论片| 日韩一区二区电影在线| 在线中文字幕一区| 色综合久久中文字幕综合网| 99久久99精品久久久久久| 国产精品夜夜爽| 国内精品久久久久影院色| 日韩不卡一二三区| 午夜精品久久久久久久久久久 | 国产麻豆日韩欧美久久| 午夜欧美在线一二页| 亚洲国产日韩精品| 香蕉av福利精品导航| 午夜久久久久久久久| 视频在线观看一区二区三区| 免费成人在线视频观看| 国内成+人亚洲+欧美+综合在线| 激情偷乱视频一区二区三区| 国产乱子轮精品视频| 波多野结衣的一区二区三区| 日本精品一级二级| 欧美不卡一区二区| 国产精品丝袜在线| 国产婷婷一区二区| 亚洲国产美国国产综合一区二区| 蜜桃av噜噜一区二区三区小说| 激情欧美一区二区| 91理论电影在线观看| 欧美一卡2卡三卡4卡5免费| 久久精品无码一区二区三区 | 免费久久精品视频| 亚洲一二三四区不卡| 国产一区福利在线| 91国偷自产一区二区开放时间 | 日韩毛片精品高清免费| 麻豆国产精品777777在线| 亚洲乱码中文字幕综合| 亚洲综合一二三区| 久久国产精品免费| 欧美三级欧美一级| 亚洲国产成人午夜在线一区 | 天堂影院一区二区| av成人老司机| 久久久久久久久久久黄色| 亚洲一级电影视频| 成人黄色在线看| 精品粉嫩aⅴ一区二区三区四区| 一区二区三区中文字幕| 成人一区二区三区在线观看| 欧美女孩性生活视频| 国产精品午夜在线观看| 九九精品视频在线看| 欧美高清一级片在线| 尤物在线观看一区| 97久久超碰精品国产| 精品国产青草久久久久福利| 久久奇米777| 国产亚洲成av人在线观看导航| 136国产福利精品导航| 丁香啪啪综合成人亚洲小说| 精品久久一二三区| 激情av综合网| 欧美日本乱大交xxxxx| 亚洲视频综合在线| 91高清在线观看| 一区av在线播放| 精品视频一区二区三区免费| 成人免费在线视频| 丁香一区二区三区| 欧美激情一区二区三区蜜桃视频| 国产乱码精品一品二品| 欧美激情综合网| 日本韩国精品在线| 亚洲欧洲精品天堂一级| 国产白丝精品91爽爽久久| 国产精品日产欧美久久久久| 成人av电影在线播放| 一区二区三区国产豹纹内裤在线| 3751色影院一区二区三区| 男女视频一区二区| 日韩亚洲欧美成人一区| 精东粉嫩av免费一区二区三区| 亚洲国产精品高清| 欧美视频在线一区| 国产精品综合视频| 国产日韩av一区| 日韩一区二区三区视频在线观看| 国产成人精品免费| 日本va欧美va精品发布| 综合久久给合久久狠狠狠97色 | 国产日韩欧美精品一区| 欧美日韩dvd在线观看| 99精品视频中文字幕| 极品少妇xxxx精品少妇偷拍| 亚洲一区在线视频| 国产精品久久福利| 久久精品欧美一区二区三区不卡| 欧美巨大另类极品videosbest| 成人av资源在线观看| 国产精品综合av一区二区国产馆| 日本不卡视频在线| 丝袜美腿亚洲综合| 亚洲国产高清aⅴ视频| 久久奇米777| 日韩三级精品电影久久久| 色欧美日韩亚洲| 色婷婷久久久久swag精品| 成人99免费视频| 成人国产精品免费网站| 国模大尺度一区二区三区| 亚洲另类在线视频| 国产精品福利av| 国产精品国产自产拍在线| 久久先锋影音av| 欧美激情综合在线| 国产欧美视频在线观看| 日本一区二区久久| 欧美激情中文字幕| 国产精品黄色在线观看| 欧美激情综合在线| 亚洲欧美日韩国产成人精品影院| 综合久久久久久| 一区二区三区精品在线观看| 伊人一区二区三区| 日本成人中文字幕| 国产精品1024久久| 97se亚洲国产综合在线| 欧美人妇做爰xxxⅹ性高电影|