MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / readFile

Method readFile

src/main/java/io/file/FileIO.java:62–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 public byte[] readFile() {
63 InputStream is = null;
64 try {
65 is = openInputStream();
66 int fileSize = 0;
67 fileSize = (int) fileSize();
68 byte[] b = new byte[fileSize];
69 is.read(b);
70 is.close();
71 close();
72 return b;
73 } catch (IOException ex) {
74 if (StaticData.Debug)
75 ex.printStackTrace();
76 } finally {
77 try {
78 is.close();
79 } catch (IOException ex) {
80 if (StaticData.Debug)
81 ex.printStackTrace();
82 }
83 }
84 return null;
85 }
86
87 public void writeFile(byte[] rawBytes) {
88 try {

Callers 3

loadMethod · 0.95
loadFileMethod · 0.95
BrowserFilePathNotifyMethod · 0.95

Calls 4

openInputStreamMethod · 0.95
fileSizeMethod · 0.95
closeMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected