MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / getFileType

Method getFileType

src/main/java/VCard/VCard.java:251–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 }
250
251 public String getFileType() {
252 String MIMEtype=getPhotoMIMEType();
253 if (MIMEtype!=null) {
254 if (MIMEtype.equals("image/jpeg")) return ".jpg";
255 if (MIMEtype.equals("image/png")) return ".png";
256 if (MIMEtype.equals("image/gif")) return ".gif";
257 if (MIMEtype.equals("image/x-ms-bmp")) return ".bmp";
258 }
259 return ".jpg";
260 }
261//#endif
262
263//#if FILE_IO

Callers 2

BrowserFilePathNotifyMethod · 0.80
BrowserFilePathNotifyMethod · 0.80

Calls 2

getPhotoMIMETypeMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected