@Test public void testURLLocation() throws Exception { if (isInternetAccessible()) { InputStream in = FileUtil.open(Message.class, "http: if (in != null) { in.close(); } assertNotNull("Resource not found", in); } }
public static InputStream open(Class<?> clazz, String name) { return open(clazz, name, Location.FILESYSTEM, Location.CONTEXT_RESOURCE, Location.CLASS_RESOURCE, Location.CLASSLOADER_RESOURCE, Location.URL); }
FileUtil { public static InputStream open(Class<?> clazz, String name) { return open(clazz, name, Location.FILESYSTEM, Location.CONTEXT_RESOURCE, Location.CLASS_RESOURCE, Location.CLASSLOADER_RESOURCE, Location.URL); } }
FileUtil { public static InputStream open(Class<?> clazz, String name) { return open(clazz, name, Location.FILESYSTEM, Location.CONTEXT_RESOURCE, Location.CLASS_RESOURCE, Location.CLASSLOADER_RESOURCE, Location.URL); }  }
FileUtil { public static InputStream open(Class<?> clazz, String name) { return open(clazz, name, Location.FILESYSTEM, Location.CONTEXT_RESOURCE, Location.CLASS_RESOURCE, Location.CLASSLOADER_RESOURCE, Location.URL); }  static String fileAppendPath(String pathPrefix, String pathSuffix); static String sessionIdFileName(SessionID sessionID); static InputStream open(Class<?> clazz, String name); static InputStream open(Class<?> clazz, String name, Location... locations); }
FileUtil { public static InputStream open(Class<?> clazz, String name) { return open(clazz, name, Location.FILESYSTEM, Location.CONTEXT_RESOURCE, Location.CLASS_RESOURCE, Location.CLASSLOADER_RESOURCE, Location.URL); }  static String fileAppendPath(String pathPrefix, String pathSuffix); static String sessionIdFileName(SessionID sessionID); static InputStream open(Class<?> clazz, String name); static InputStream open(Class<?> clazz, String name, Location... locations);  }