MCPcopy
hub / github.com/yixia/VitamioBundle / addFileType

Method addFileType

vitamio/src/io/vov/vitamio/MediaFile.java:79–82  ·  view source on GitHub ↗
(String extension, int fileType, String mimeType)

Source from the content-addressed store, hash-verified

77 private static HashMap<String, Integer> sMimeTypeMap = new HashMap<String, Integer>();
78
79 static void addFileType(String extension, int fileType, String mimeType) {
80 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
81 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType));
82 }
83
84 static {
85 // addFileType("MP3", FILE_TYPE_MP3, "audio/mpeg");

Callers 1

MediaFileClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected