FileDocCategorySizeDatePackage
DefaultFolder.javaAPI DocGlassfish v2 API4302Mon May 14 15:28:46 BST 2007com.sun.mail.pop3

DefaultFolder

public class DefaultFolder extends Folder
The POP3 DefaultFolder. Only contains the "INBOX" folder.
version
1.8, 07/05/04
author
Christopher Cotton

Fields Summary
Constructors Summary
DefaultFolder(POP3Store store)

	super(store);
    
Methods Summary
public voidappendMessages(Message[] msgs)

	throw new MethodNotSupportedException("Append not supported");	
    
public voidclose(boolean expunge)

	throw new MethodNotSupportedException("close");
    
public booleancreate(int type)

	return false;
    
public booleandelete(boolean recurse)

	throw new MethodNotSupportedException("delete");
    
public booleanexists()

	return true;
    
public Message[]expunge()

	throw new MethodNotSupportedException("expunge");	
    
public javax.mail.FoldergetFolder(java.lang.String name)

	if (!name.equalsIgnoreCase("INBOX")) {
	    throw new MessagingException("only INBOX supported");
	} else {
	    return getInbox();
	}
    
public java.lang.StringgetFullName()

	return "";
    
protected javax.mail.FoldergetInbox()

	return getStore().getFolder("INBOX");
    
public MessagegetMessage(int msgno)

	throw new MethodNotSupportedException("getMessage");
    
public intgetMessageCount()

	return 0;
    
public java.lang.StringgetName()

	return "";
    
public javax.mail.FoldergetParent()

	return null;
    
public javax.mail.FlagsgetPermanentFlags()

	return new Flags(); // empty flags object
    
public chargetSeparator()

	return '/";
    
public intgetType()

	return HOLDS_FOLDERS;
    
public booleanhasNewMessages()

	return false;
    
public booleanisOpen()

	return false;
    
public javax.mail.Folder[]list(java.lang.String pattern)

	Folder[] f = { getInbox() };
	return f;
    
public voidopen(int mode)

	throw new MethodNotSupportedException("open");
    
public booleanrenameTo(javax.mail.Folder f)

	throw new MethodNotSupportedException("renameTo");