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

Method getExtension

app/src/main/java/eu/faircode/email/Helper.java:2911–2918  ·  view source on GitHub ↗
(String filename)

Source from the content-addressed store, hash-verified

2909 }
2910
2911 static String getExtension(String filename) {
2912 if (filename == null)
2913 return null;
2914 int index = filename.lastIndexOf(".");
2915 if (index < 0)
2916 return null;
2917 return filename.substring(index + 1);
2918 }
2919
2920 static String guessMimeType(String filename) {
2921 String type = null;

Callers 15

onExecuteMethod · 0.95
addAttachmentMethod · 0.95
onExecuteMethod · 0.95
bindToMethod · 0.95
onViewMethod · 0.95
_getMethod · 0.95
handleImportMethod · 0.95
reportNoViewerMethod · 0.95
guessMimeTypeMethod · 0.95
getInfoMethod · 0.95
onExecuteMethod · 0.95
isPatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected