com.calfater.mailcarbon.helper
Class StoreHelper

java.lang.Object
  extended by com.calfater.mailcarbon.helper.StoreHelper

public class StoreHelper
extends java.lang.Object

Tools for managing Stores.


Constructor Summary
StoreHelper()
           
 
Method Summary
static void close(javax.mail.Store store)
          Close a store.
static javax.mail.Store open(javax.mail.URLName url)
          Open a store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreHelper

public StoreHelper()
Method Detail

open

public static javax.mail.Store open(javax.mail.URLName url)
                             throws javax.mail.MessagingException
Open a store.

Parameters:
url - The store url.
Returns:
An opened Store.
Throws:
javax.mail.MessagingException

close

public static void close(javax.mail.Store store)
                  throws javax.mail.MessagingException
Close a store.

Parameters:
store - The store to be closed.
Throws:
javax.mail.MessagingException