MCPcopy
hub / github.com/Col-E/Recaf / getFile

Method getFile

src/main/java/me/coley/recaf/workspace/Workspace.java:364–373  ·  view source on GitHub ↗

@param name Resource name. @return Resource binary by the given name.

(String name)

Source from the content-addressed store, hash-verified

362 * @return Resource binary by the given name.
363 */
364 public byte[] getFile(String name) {
365 byte[] ret = primary.getFiles().get(name);
366 if(ret != null)
367 return ret;
368 for(JavaResource resource : getLibraries())
369 ret = resource.getFiles().get(name);
370 if(ret != null)
371 return ret;
372 return null;
373 }
374
375 // ================================= SOURCE / JAVADOC UTILS ================================= //
376

Callers 2

getClasspathFileMethod · 0.45
reapplyStyleMethod · 0.45

Calls 3

getLibrariesMethod · 0.95
getMethod · 0.45
getFilesMethod · 0.45

Tested by 1

getClasspathFileMethod · 0.36