public void loadAndReplaceMimetypes(InputStream paramInputStream) throws IOException {
		BufferedReader localBufferedReader = new BufferedReader(new InputStreamReader(paramInputStream));
		String str1 = null;

		while ((str1 = localBufferedReader.readLine()) != null) {
			str1 = str1.trim();

			if (str1.startsWith("#"))
				continue;
			if (str1.length() == 0) {
				continue;
			}
			StringTokenizer localStringTokenizer = new StringTokenizer(str1, " \t");
			if (localStringTokenizer.countTokens() > 1) {
				String str2 = localStringTokenizer.nextToken();
				while (localStringTokenizer.hasMoreTokens()) {
					String str3 = localStringTokenizer.nextToken();
					this.extensionToMimetypeMap.put(str3, str2);
					logger.info("Setting mime type for extension '" + str3 + "' to '" + str2 + "'");
				}
			} else {
				logger.info("Ignoring mimetype with no associated file extensions: '" + str1 + "'");
			}
		}
	}