Java Properties Load from File loadMimeTypes(InputStream inputStream)

Here you can find the source of loadMimeTypes(InputStream inputStream)

Description

load Mime Types

License

Open Source License

Declaration

public static void loadMimeTypes(InputStream inputStream) throws IOException 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2010 Robert "Unlogic" Olofsson (unlogic@unlogic.se).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v3
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl-3.0-standalone.html
 ******************************************************************************/

import java.io.IOException;
import java.io.InputStream;

import java.util.Properties;

public class Main {
    private static Properties MimeTypes = new Properties();

    public static void loadMimeTypes(InputStream inputStream) throws IOException {
        MimeTypes.clear();// w  w w.j  ava  2  s .  c  om
        MimeTypes.load(inputStream);
    }
}

Related

  1. loadLocalization(final ZipFile file, final String loc)
  2. loadLocatorInfo(String fileName)
  3. loadLWJGL()
  4. loadManifest(File bundleLocation)
  5. loadMetaConfiguration()
  6. loadNative(File nativeLibsFolder)
  7. loadNecessaryPackagePrivateProperties(Class aClass, String aFileName)
  8. loadOSDependentLibrary()
  9. loadParamFromFile(String fileName, String param, String defValue)