public AssetInfo locate(AssetManager manager, AssetKey key) { String name = key.getName(); try{ URL url = new URL(root, name); URLConnection conn = url.openConnection(); conn.setUseCaches(false); conn.setDoOutput(false); InputStream in; try { in = conn.getInputStream(); if (in == null) return null; } catch (FileNotFoundException ex){ return null; } return new UrlAssetInfo(manager, key, in); }catch (IOException ex){ logger.log(Level.WARNING, "Error while locating " + name, ex); return null; } }