/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException for other failures */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException for other failures */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * Convenience method that invokes {@link #listSubscribed(String)} with the pattern "%". * * @return a, possibly empty, array of subscribed subfolders * @throws MessagingException if there was a problem accessing the store */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * Convenience method that invokes {@link #listSubscribed(String)} with the pattern "%". * * @return a, possibly empty, array of subscribed subfolders * @throws MessagingException if there was a problem accessing the store */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException for other failures */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException for other failures */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException for other failures */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException for other failures */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException for other failures */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
/** * 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. * @see #listSubscribed * @exception FolderNotFoundException if this folder does * not exist. * @exception MessagingException for other failures */ public Folder[] listSubscribed() throws MessagingException { return listSubscribed("%"); }
@Override public JavaxMailFolder[] listSubscribed() throws RuntimeMessagingException { try { return decorateFolderArray(delegate.listSubscribed()); } catch (MessagingException e) { throw new RuntimeMessagingException(e); } }
@Override public JavaxMailFolder[] listSubscribed(String pattern) throws RuntimeMessagingException { try { return decorateFolderArray(delegate.listSubscribed(pattern)); } catch (MessagingException e) { throw new RuntimeMessagingException(e); } }
folders = store.getDefaultFolder().listSubscribed("*"); endTime = System.currentTimeMillis(); System.out.println(String.format("LSUB *, folders.length = %d, execTime = %d sec", folders.length, (endTime - startTime)/1000));