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

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

?? folder.java

?? java Email you can use it to send email to others
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* * 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. *//* * @(#)Folder.java	1.58 07/05/04 */package javax.mail;import java.io.*;import java.lang.*;import java.util.Vector;import java.util.StringTokenizer;import javax.mail.search.SearchTerm;import javax.mail.event.*;/** * Folder is an abstract class that represents a folder for mail * messages. Subclasses implement protocol specific Folders.<p> * * Folders can contain Messages, other Folders or both, thus providing * a tree-like hierarchy rooted at the Store's default folder. (Note  * that some Folder implementations may not allow both Messages and  * other Folders in the same Folder).<p> * * The interpretation of folder names is implementation dependent. * The different levels of hierarchy in a folder's full name * are separated from each other by the hierarchy delimiter  * character.<p> * * The case-insensitive full folder name (that is, the full name * relative to the default folder for a Store) <strong>INBOX</strong> * is reserved to mean the "primary folder for this user on this * server".  Not all Stores will provide an INBOX folder, and not * all users will have an INBOX folder at all times.  The name * <strong>INBOX</strong> is reserved to refer to this folder, * when it exists, in Stores that provide it. <p> * * A Folder object obtained from a Store need not actually exist * in the backend store. The <code>exists</code> method tests whether * the folder exists or not. The <code>create</code> method * creates a Folder. <p> * * A Folder is initially in the closed state. Certain methods are valid * in this state; the documentation for those methods note this.  A * Folder is opened by calling its 'open' method. All Folder methods, * except <code>open</code>, <code>delete</code> and  * <code>renameTo</code>, are valid in this state. <p> * * The only way to get a Folder is by invoking the  * <code>getFolder</code> method on Store, Folder, or Session, or by invoking  * the <code>list</code> or <code>listSubscribed</code> methods  * on Folder. Folder objects returned by the above methods are not  * cached by the Store. Thus, invoking the <code>getFolder</code> method * with the same folder name multiple times will return distinct Folder  * objects.  Likewise for the <code>list</code> and <code>listSubscribed</code> * methods. <p> * * The Message objects within the Folder are cached by the Folder. * Thus, invoking <code>getMessage(msgno)</code> on the same message number * multiple times will return the same Message object, until an  * expunge is done on this Folder. <p> * * Note that a Message's message number can change within a * session if the containing Folder is expunged using the expunge * method.  Clients that use message numbers as references to messages * should be aware of this and should be prepared to deal with  * situation (probably by flushing out existing message number references * and reloading them). Because of this complexity, it is better for * clients to use Message objects as references to messages, rather than * message numbers. Expunged Message objects still have to be * pruned, but other Message objects in that folder are not affected by the  * expunge. * * @author John Mani * @author Bill Shannon */public abstract class Folder {    /**     * The parent store.     */    protected Store store;    /**     * The open mode of this folder.  The open mode is     * <code>Folder.READ_ONLY</code>, <code>Folder.READ_WRITE</code>,     * or -1 if not known.     * @since	JavaMail 1.1     */    protected int mode = -1;    /**     * Constructor that takes a Store object.     *     * @param store the Store that holds this folder     */    protected Folder(Store store) {	this.store = store;    }    /**     * Returns the name of this Folder. <p>     *     * This method can be invoked on a closed Folder.     *     * @return		name of the Folder     */    public abstract String getName();    /**     * Returns the full name of this Folder. If the folder resides under     * the root hierarchy of this Store, the returned name is relative     * to the root. Otherwise an absolute name, starting with the      * hierarchy delimiter, is returned. <p>     *     * This method can be invoked on a closed Folder.     *     * @return		full name of the Folder     */    public abstract String getFullName();    /**     * Return a URLName representing this folder.  The returned URLName     * does <em>not</em> include the password used to access the store.     *     * @return	the URLName representing this folder     * @see	URLName     * @since	JavaMail 1.1     */    public URLName getURLName() throws MessagingException {	URLName storeURL = getStore().getURLName();	String fullname = getFullName();	StringBuffer encodedName = new StringBuffer();	char separator = getSeparator();	if (fullname != null) {	    /*	    // We need to encode each of the folder's names.	    StringTokenizer tok = new StringTokenizer(		fullname, new Character(separator).toString(), true);	    while (tok.hasMoreTokens()) {		String s = tok.nextToken();		if (s.charAt(0) == separator)		    encodedName.append(separator);		else		    // XXX - should encode, but since there's no decoder...		    //encodedName.append(java.net.URLEncoder.encode(s));		    encodedName.append(s);	    }	    */	    // append the whole thing, until we can encode	    encodedName.append(fullname);	}	/*	 * Sure would be convenient if URLName had a	 * constructor that took a base URLName.	 */	return new URLName(storeURL.getProtocol(), storeURL.getHost(),			    storeURL.getPort(), encodedName.toString(),			    storeURL.getUsername(),			    null /* no password */);    }    /**     * Returns the Store that owns this Folder object.     * This method can be invoked on a closed Folder.     * @return 		the Store     */    public Store getStore() {	return store;    }    /**     * Returns the parent folder of this folder.     * This method can be invoked on a closed Folder. If this folder     * is the top of a folder hierarchy, this method returns null. <p>     *     * Note that since Folder objects are not cached, invoking this method     * returns a new distinct Folder object.     *     * @return		Parent folder     */    public abstract Folder getParent() throws MessagingException;    /**     * Tests if this folder physically exists on the Store.     * This method can be invoked on a closed Folder.     *     * @return true if the folder exists, otherwise false     * @see    #create     * @exception	MessagingException typically if the connection      *			to the server is lost.     */    public abstract boolean exists() throws MessagingException;    /**     * Returns a list of Folders belonging to this Folder's namespace     * that match the specified pattern. Patterns may contain the wildcard     * characters <code>"%"</code>, which matches any character except hierarchy     * delimiters, and <code>"*"</code>, which matches any character. <p>     *     * As an example, given the folder hierarchy: <pre>     *    Personal/     *       Finance/     *          Stocks     *          Bonus     *          StockOptions     *       Jokes     * </pre>     * <code>list("*")</code> on "Personal" will return the whole      * hierarchy. <br>     * <code>list("%")</code> on "Personal" will return "Finance" and      * "Jokes". <br>     * <code>list("Jokes")</code> on "Personal" will return "Jokes".<br>     * <code>list("Stock*")</code> on "Finance" will return "Stocks"     * and "StockOptions". <p>     *     * Folder objects are not cached by the Store, so invoking this     * method on the same pattern multiple times will return that many     * distinct Folder objects. <p>     *     * This method can be invoked on a closed Folder.     *     * @param pattern	the match pattern     * @return		array of matching Folder objects. An empty     *			array is returned if no matching Folders exist.     * @see 		#listSubscribed     * @exception 	FolderNotFoundException if this folder does      *			not exist.     * @exception 	MessagingException     */    public abstract Folder[] list(String pattern) throws MessagingException;    /**     * Returns a list of subscribed Folders belonging to this Folder's     * namespace that match the specified pattern. If the folder does     * not support subscription, this method should resolve to     * <code>list</code>.     * (The default implementation provided here, does just this).     * The pattern can contain wildcards as for <code>list</code>. <p>     *     * Note that, at a given level of the folder hierarchy, a particular     * folder may not be subscribed, but folders underneath that folder     * in the folder hierarchy may be subscribed.  In order to allow     * walking the folder hierarchy, such unsubscribed folders may be     * returned, indicating that a folder lower in the hierarchy is     * subscribed.  The <code>isSubscribed</code> method on a folder will     * tell whether any particular folder is actually subscribed. <p>     *     * Folder objects are not cached by the Store, so invoking this     * method on the same pattern multiple times will return that many     * distinct Folder objects. <p>     *     * This method can be invoked on a closed Folder.     *     * @param pattern	the match pattern     * @return		array of matching subscribed Folder objects. An     *			empty array is returned if no matching     *			subscribed folders exist.     * @see 		#list     * @exception 	FolderNotFoundException if this folder does     *			not exist.     * @exception 	MessagingException     */    public Folder[] listSubscribed(String pattern) throws MessagingException {	return list(pattern);    }    /**     * Convenience method that returns the list of folders under this     * Folder. This method just calls the <code>list(String pattern)</code>     * method with <code>"%"</code> as the match pattern. This method can     * be invoked on a closed Folder.     *     * @return		array of Folder objects under this Folder. An     *			empty array is returned if no subfolders exist.     * @see		#list     * @exception 	FolderNotFoundException if this folder does     *			not exist.     * @exception 	MessagingException     */    public Folder[] list() throws MessagingException {	return list("%");    }    /**     * Convenience method that returns the list of subscribed folders      * under this Folder. This method just calls the     * <code>listSubscribed(String pattern)</code> method with <code>"%"</code>     * as the match pattern. This method can be invoked on a closed Folder.     *     * @return		array of subscribed Folder objects under this      *			Folder. An empty array is returned if no subscribed      *			subfolders exist.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区三区精品视频 | 久久精品国产一区二区三| 日韩欧美一区二区久久婷婷| 成人一区二区三区视频在线观看| 亚洲国产综合在线| 国产日韩精品久久久| 欧美日韩国产高清一区二区三区 | 亚洲国产精品高清| 91精品国产乱码| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美日韩电影一区| 99这里都是精品| 麻豆免费看一区二区三区| 亚洲人亚洲人成电影网站色| 精品国产91洋老外米糕| 欧洲精品视频在线观看| 床上的激情91.| 久久精品国产精品亚洲精品| 午夜精品爽啪视频| 中文字幕欧美一区| 久久久精品日韩欧美| 欧美精品日韩精品| 91色乱码一区二区三区| 福利电影一区二区| 裸体歌舞表演一区二区| 亚洲h在线观看| 亚洲人成小说网站色在线| 亚洲国产激情av| 久久久久久久久久电影| 日韩一区二区麻豆国产| 欧美日韩免费电影| 在线精品亚洲一区二区不卡| 成人精品电影在线观看| 成人综合在线网站| 国产盗摄视频一区二区三区| 国产一区二区三区不卡在线观看| 日韩**一区毛片| 午夜激情一区二区| 午夜精品视频一区| 偷偷要91色婷婷| 视频一区二区三区入口| 亚洲一区二区四区蜜桃| 亚洲一区影音先锋| 亚洲欧美另类久久久精品2019| 一区在线观看视频| 中文字幕亚洲一区二区va在线| 最好看的中文字幕久久| 国产精品第四页| 日韩伦理免费电影| 亚洲免费在线视频| 一区二区三区在线免费播放| 伊人婷婷欧美激情| 亚洲综合另类小说| 午夜精品久久久久久久蜜桃app| 亚洲午夜久久久久久久久电影网| 一二三四区精品视频| 亚洲一二三级电影| 青青草97国产精品免费观看无弹窗版 | 久久99精品久久久久久| 狠狠色丁香九九婷婷综合五月| 狠狠色丁香婷婷综合| 夫妻av一区二区| 色激情天天射综合网| 欧美日韩一级片网站| 日韩亚洲欧美在线观看| 欧美电视剧在线看免费| 国产欧美精品一区| 亚洲男帅同性gay1069| 亚洲sss视频在线视频| 久久精品国内一区二区三区| 福利一区在线观看| 在线观看免费亚洲| 欧美一区二区三区成人| 久久午夜老司机| 国产精品家庭影院| 亚洲午夜私人影院| 久久丁香综合五月国产三级网站| 成人美女视频在线看| 在线观看一区二区精品视频| 日韩一区二区免费在线观看| 国产精品久久久久三级| 三级一区在线视频先锋| 国产乱色国产精品免费视频| 在线观看亚洲成人| 精品美女在线播放| 亚洲人精品一区| 精品一区二区av| 色悠悠久久综合| xfplay精品久久| 亚洲宅男天堂在线观看无病毒| 老司机精品视频一区二区三区| 成人毛片老司机大片| 欧美日韩激情一区二区三区| 久久久久88色偷偷免费| 天天综合网天天综合色| 成人丝袜高跟foot| 91精品国产综合久久精品麻豆| 中文字幕高清不卡| 天堂av在线一区| 99久久精品国产麻豆演员表| 精品国产一区二区在线观看| 一级做a爱片久久| 风间由美一区二区av101| 6080国产精品一区二区| 日韩理论片在线| 国产电影一区在线| 日韩午夜电影在线观看| 一区二区三区久久| 岛国一区二区三区| 欧美成人高清电影在线| 亚洲国产美国国产综合一区二区| 成人手机在线视频| 精品国产乱码久久久久久蜜臀| 亚洲午夜久久久久久久久电影网| 成人性生交大合| 日韩精品在线看片z| 亚洲国产精品久久一线不卡| 99久久er热在这里只有精品66| 久久这里都是精品| 日韩国产欧美一区二区三区| 在线看不卡av| 亚洲精品成a人| 成人不卡免费av| 欧美国产日韩在线观看| 韩国三级中文字幕hd久久精品| 91麻豆精品国产综合久久久久久| 一区二区视频在线| av日韩在线网站| 国产精品国产自产拍在线| 成人中文字幕在线| 欧美国产欧美亚州国产日韩mv天天看完整| 青青草原综合久久大伊人精品| 91精品婷婷国产综合久久性色| 天天av天天翘天天综合网色鬼国产| 欧美午夜电影一区| 亚洲综合男人的天堂| 91福利视频久久久久| 亚洲激情五月婷婷| 91免费国产在线观看| 亚洲色图一区二区| 91视频一区二区三区| 中文字幕在线一区免费| aaa欧美大片| 一二三四社区欧美黄| 欧美网站一区二区| 亚洲成人你懂的| 3751色影院一区二区三区| 日韩精品成人一区二区三区| 91精品免费在线观看| 青青草国产精品97视觉盛宴| 日韩三级中文字幕| 国产专区欧美精品| 国产性色一区二区| 成人精品免费看| 一区二区三区中文在线| 欧美色图12p| 日本成人在线一区| 精品久久一区二区| 国产aⅴ综合色| 最新国产成人在线观看| 精品视频在线免费| 男人的j进女人的j一区| 欧美成人a∨高清免费观看| 国产精品一级在线| 亚洲男女一区二区三区| 欧美一区日韩一区| 国产一区二区三区精品欧美日韩一区二区三区 | 久久欧美一区二区| 成人性生交大片免费看视频在线 | 欧美日韩国产大片| 麻豆精品久久精品色综合| 国产亚洲一区二区三区在线观看 | 99久久精品国产观看| 午夜欧美视频在线观看| 26uuu国产在线精品一区二区| 国产麻豆精品一区二区| 亚洲同性同志一二三专区| 欧美日韩一区在线观看| 精品一区精品二区高清| 成人免费在线观看入口| 91精品免费观看| 9i在线看片成人免费| 婷婷久久综合九色国产成人 | 欧美国产1区2区| 欧洲一区二区三区在线| 国产自产视频一区二区三区| 亚洲欧洲日本在线| 91精品国产综合久久精品性色| 国产福利精品一区| 亚洲成人免费视| 国产精品天美传媒| 欧美一区二区三区啪啪| 成人黄色777网| 另类调教123区| 最新欧美精品一区二区三区| 欧美r级在线观看| 欧美午夜精品免费| 成人久久久精品乱码一区二区三区| 亚洲国产日韩一级| 国产精品成人一区二区艾草 |