Return the open mode of this folder. Returns Folder.READ_ONLY , Folder.READ_WRITE , or -1 if the open mode is not known (usually only because an older Folder provider has not been updated to use this new method). @exception IllegalStateException if this folder
()
| 663 | * @since JavaMail 1.1 |
| 664 | */ |
| 665 | public synchronized int getMode() { |
| 666 | if (!isOpen()) |
| 667 | throw new IllegalStateException("Folder not open"); |
| 668 | return mode; |
| 669 | } |
| 670 | |
| 671 | /** |
| 672 | * Get the permanent flags supported by this Folder. Returns a Flags |