content: package com.wm.remusic.uitl;
  
  import android.os.Environment;
  
  import java.io.File;
  import java.io.FileInputStream;
  import java.io.IOException;
  import java.util.Collection;
  import java.util.Enumeration;
  import java.util.Map;
  import java.util.Properties;
  import java.util.Set;
  
  /**
   * Created by wm on 2016/3/7.
   */
  //引用到的工具类 判断定制系统类型
  
  public class BuildProperties {
  
      private final Properties properties;
  
      private BuildProperties() throws IOException {
          properties = new Properties();
          properties.load(new FileInputStream(new File(Environment.getRootDirectory(), "build.prop")));
      }
  
      public static BuildProperties newInstance() throws IOException {
          return new BuildProperties();
      }
  
      public boolean containsKey(final Object key) {
          return properties.containsKey(key);
      }
  
      public boolean containsValue(final Object value) {
          return properties.containsValue(value);
      }
  
      public Set<Map.Entry<Object, Object>> entrySet() {
          return properties.entrySet();
      }
  
      public String getProperty(final String name) {
          return properties.getProperty(name);
      }
  
      public String getProperty(final String name, final String defaultValue) {
          return properties.getProperty(name, defaultValue);
      }
  
      public boolean isEmpty() {
          return properties.isEmpty();
      }
  
      public Enumeration<Object> keys() {
          return properties.keys();
      }
  
      public Set<Object> keySet() {
          return properties.keySet();
      }
  
      public int size() {
          return properties.size();
      }
  
      public Collection<Object> values() {
          return properties.values();
      }
  }