@Test public void testGetResourceAsString() throws Exception { Assert.assertEquals("foo=bar", IOUtils.getResourceAsString("test.properties")); }
public static String getResourceAsString(String name) { try { return toString(getResourceAsStream(name)); } catch (IOException e) { throw new RuntimeException(e); } }
IOUtils { public static String getResourceAsString(String name) { try { return toString(getResourceAsStream(name)); } catch (IOException e) { throw new RuntimeException(e); } } }
IOUtils { public static String getResourceAsString(String name) { try { return toString(getResourceAsStream(name)); } catch (IOException e) { throw new RuntimeException(e); } } private  IOUtils(); }
IOUtils { public static String getResourceAsString(String name) { try { return toString(getResourceAsStream(name)); } catch (IOException e) { throw new RuntimeException(e); } } private  IOUtils(); static void copy(InputStream input, OutputStream output); static void write(String str, OutputStream out); static String toString(InputStream input); static void closeQuietly(InputStream is); static void consumeAndClose(InputStream is); static InputStream getResourceAsStream(String name); static String getResourceAsString(String name); static byte[] readToBytes(InputStream inputStream); static File getFile(String classPathLocation); }
IOUtils { public static String getResourceAsString(String name) { try { return toString(getResourceAsStream(name)); } catch (IOException e) { throw new RuntimeException(e); } } private  IOUtils(); static void copy(InputStream input, OutputStream output); static void write(String str, OutputStream out); static String toString(InputStream input); static void closeQuietly(InputStream is); static void consumeAndClose(InputStream is); static InputStream getResourceAsStream(String name); static String getResourceAsString(String name); static byte[] readToBytes(InputStream inputStream); static File getFile(String classPathLocation);  }