{@inheritDoc}
()
| 1851 | * {@inheritDoc} |
| 1852 | */ |
| 1853 | @Override |
| 1854 | public synchronized Message[] getMessages() throws MessagingException { |
| 1855 | /* |
| 1856 | * Need to override Folder method to throw FolderClosedException |
| 1857 | * instead of IllegalStateException if not really closed. |
| 1858 | */ |
| 1859 | checkOpened(); |
| 1860 | int total = getMessageCount(); |
| 1861 | Message[] msgs = new Message[total]; |
| 1862 | for (int i = 1; i <= total; i++) |
| 1863 | msgs[i - 1] = messageCache.getMessage(i); |
| 1864 | return msgs; |
| 1865 | } |
| 1866 | |
| 1867 | /** |
| 1868 | * Append the given messages into this folder. |
nothing calls this directly
no test coverage detected