@Test public void testReadProperties() throws Exception { }
public static Map<String, String> readProperties(String resourceName) { Properties properties = new Properties(); URL resource = Resources.getResource(resourceName); try { properties.load(new InputStreamReader(resource.openStream(), StringPool.UTF_8)); } catch (Exception e) { Throwables.throwIfUnchecked(e); throw new AssertionError(e); } return Maps.fromProperties(properties); }
ResourceKit { public static Map<String, String> readProperties(String resourceName) { Properties properties = new Properties(); URL resource = Resources.getResource(resourceName); try { properties.load(new InputStreamReader(resource.openStream(), StringPool.UTF_8)); } catch (Exception e) { Throwables.throwIfUnchecked(e); throw new AssertionError(e); } return Maps.fromProperties(properties); } }
ResourceKit { public static Map<String, String> readProperties(String resourceName) { Properties properties = new Properties(); URL resource = Resources.getResource(resourceName); try { properties.load(new InputStreamReader(resource.openStream(), StringPool.UTF_8)); } catch (Exception e) { Throwables.throwIfUnchecked(e); throw new AssertionError(e); } return Maps.fromProperties(properties); } private  ResourceKit(); }
ResourceKit { public static Map<String, String> readProperties(String resourceName) { Properties properties = new Properties(); URL resource = Resources.getResource(resourceName); try { properties.load(new InputStreamReader(resource.openStream(), StringPool.UTF_8)); } catch (Exception e) { Throwables.throwIfUnchecked(e); throw new AssertionError(e); } return Maps.fromProperties(properties); } private  ResourceKit(); static Map<String, String> readProperties(String resourceName); static void loadFileInProperties(String file_path, Properties properties); static boolean isUrl(String resourceLocation); static URL getURL(String resourceLocation); static File getFile(String resourceLocation); static File getFile(URL resourceUrl); static File getFile(URL resourceUrl, String description); static File getFile(URI resourceUri); static File getFile(URI resourceUri, String description); static boolean isFileURL(URL url); static boolean isJarURL(URL url); static URL extractJarFileURL(URL jarUrl); static URI toURI(URL url); static URI toURI(String location); static void useCachesIfNecessary(URLConnection con); }
ResourceKit { public static Map<String, String> readProperties(String resourceName) { Properties properties = new Properties(); URL resource = Resources.getResource(resourceName); try { properties.load(new InputStreamReader(resource.openStream(), StringPool.UTF_8)); } catch (Exception e) { Throwables.throwIfUnchecked(e); throw new AssertionError(e); } return Maps.fromProperties(properties); } private  ResourceKit(); static Map<String, String> readProperties(String resourceName); static void loadFileInProperties(String file_path, Properties properties); static boolean isUrl(String resourceLocation); static URL getURL(String resourceLocation); static File getFile(String resourceLocation); static File getFile(URL resourceUrl); static File getFile(URL resourceUrl, String description); static File getFile(URI resourceUri); static File getFile(URI resourceUri, String description); static boolean isFileURL(URL url); static boolean isJarURL(URL url); static URL extractJarFileURL(URL jarUrl); static URI toURI(URL url); static URI toURI(String location); static void useCachesIfNecessary(URLConnection con); static final String CLASSPATH_URL_PREFIX; static final String FILE_URL_PREFIX; static final String URL_PROTOCOL_FILE; static final String URL_PROTOCOL_JAR; static final String URL_PROTOCOL_ZIP; static final String URL_PROTOCOL_VFSZIP; static final String URL_PROTOCOL_WSJAR; static final String JAR_URL_SEPARATOR; }