MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / writeFile

Method writeFile

src/main/java/io/file/FileIO.java:87–100  ·  view source on GitHub ↗
(byte[] rawBytes)

Source from the content-addressed store, hash-verified

85 }
86
87 public void writeFile(byte[] rawBytes) {
88 try {
89 OutputStream os = appendOutputStream();
90 if (os != null) {
91 os.write(rawBytes);
92 os.flush();
93 os.close();
94 }
95 close();
96 } catch (IOException ex) {
97 if (StaticData.Debug)
98 ex.printStackTrace();
99 }
100 }
101
102 public String fileReadUtf() {
103 InputStreamReader is = null;

Callers 6

BrowserFilePathNotifyMethod · 0.95
exportDataMethod · 0.95
exportDataMethod · 0.95
BrowserFilePathNotifyMethod · 0.95
BrowserFilePathNotifyMethod · 0.95
addMessageMethod · 0.45

Calls 4

appendOutputStreamMethod · 0.95
closeMethod · 0.95
writeMethod · 0.80
flushMethod · 0.80

Tested by

no test coverage detected