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

Method onFile

src/main/java/me/coley/recaf/workspace/EntryLoader.java:142–148  ·  view source on GitHub ↗

Load a file. @param entryName File's archive entry name. @param value File's raw value. @return Addition was a success.

(String entryName, byte[] value)

Source from the content-addressed store, hash-verified

140 * @return Addition was a success.
141 */
142 public boolean onFile(String entryName, byte[] value) {
143 for (LoadInterceptorPlugin interceptor : PluginsManager.getInstance().ofType(LoadInterceptorPlugin.class)) {
144 value = interceptor.interceptFile(entryName, value);
145 }
146 files.put(entryName, value);
147 return true;
148 }
149
150 /**
151 * @param entry

Callers 5

handleAddClassMethod · 0.95
finishClassesMethod · 0.95
loadFilesMethod · 0.95
loadFilesMethod · 0.95
loadFilesMethod · 0.95

Calls 4

getInstanceMethod · 0.95
ofTypeMethod · 0.80
interceptFileMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected