MCPcopy Create free account
hub / github.com/M66B/FairEmail / newIMAPFolder

Method newIMAPFolder

app/src/main/java/com/sun/mail/imap/IMAPStore.java:1922–1938  ·  view source on GitHub ↗

Create an IMAPFolder object. If user supplied their own class, use it. Otherwise, call the constructor. @param fullName the full name of the folder @param separator the separator character for the folder hierarchy @param isNamespace does this name represent a namespace? @return the new IMAPFolde

(String fullName, char separator,
				Boolean isNamespace)

Source from the content-addressed store, hash-verified

1920 * @return the new IMAPFolder object
1921 */
1922 protected IMAPFolder newIMAPFolder(String fullName, char separator,
1923 Boolean isNamespace) {
1924 IMAPFolder f = null;
1925 if (folderConstructor != null) {
1926 try {
1927 Object[] o =
1928 { fullName, Character.valueOf(separator), this, isNamespace };
1929 f = (IMAPFolder)folderConstructor.newInstance(o);
1930 } catch (Exception ex) {
1931 logger.log(Level.FINE,
1932 "exception creating IMAPFolder class", ex);
1933 }
1934 }
1935 if (f == null)
1936 f = new IMAPFolder(fullName, separator, this, isNamespace);
1937 return f;
1938 }
1939
1940 /**
1941 * Create an IMAPFolder object. Call the newIMAPFolder method

Callers 8

getFolderMethod · 0.95
namespaceToFoldersMethod · 0.95
doListMethod · 0.95
listMethod · 0.45
listSubscribedMethod · 0.45
getFolderMethod · 0.45
getParentMethod · 0.45
getFolderMethod · 0.45

Calls 1

logMethod · 0.45

Tested by

no test coverage detected