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

Method getBaseType

app/src/main/java/javax/activation/DataHandler.java:657–668  ·  view source on GitHub ↗

Use the MimeType class to extract the MIME type/subtype, ignoring the parameters. The type is cached.

()

Source from the content-addressed store, hash-verified

655 * ignoring the parameters. The type is cached.
656 */
657 private synchronized String getBaseType() {
658 if (shortType == null) {
659 String ct = getContentType();
660 try {
661 MimeType mt = new MimeType(ct);
662 shortType = mt.getBaseType();
663 } catch (MimeTypeParseException e) {
664 shortType = ct;
665 }
666 }
667 return shortType;
668 }
669
670 /**
671 * Sets the DataContentHandlerFactory. The DataContentHandlerFactory

Callers 5

getInputStreamMethod · 0.95
getPreferredCommandsMethod · 0.95
getAllCommandsMethod · 0.95
getCommandMethod · 0.95
getDataContentHandlerMethod · 0.95

Calls 2

getContentTypeMethod · 0.95
getBaseTypeMethod · 0.95

Tested by

no test coverage detected