MCPcopy Create free account
hub / github.com/ReadyTalk/avian / read

Method read

test/LazyLoading.java:28–39  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

26 }
27
28 private static byte[] read(File file) throws IOException {
29 byte[] bytes = new byte[(int) file.length()];
30 FileInputStream in = new FileInputStream(file);
31 try {
32 if (in.read(bytes) != (int) file.length()) {
33 throw new RuntimeException();
34 }
35 return bytes;
36 } finally {
37 in.close();
38 }
39 }
40
41 public static void main(String[] args) throws Exception {
42 Class c = new MyClassLoader(LazyLoading.class.getClassLoader()).loadClass

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
closeMethod · 0.95
lengthMethod · 0.65

Tested by

no test coverage detected