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

Method load

src/main/java/io/file/browse/ShowFile.java:81–95  ·  view source on GitHub ↗
(String file)

Source from the content-addressed store, hash-verified

79 }
80
81 private void load(String file) {
82 FileIO f = FileIO.createConnection(file);
83 if (type == TYPE_TEXT) {
84 txtData = f.fileReadUtf();
85 } else {
86 rawBytes = f.readFile();
87 len = rawBytes.length;
88 }
89 try {
90 f.close();
91 } catch (IOException ex) {
92 if (StaticData.Debug)
93 ex.printStackTrace();
94 }
95 }
96
97 private void view(String file) {
98 try{

Callers 1

ShowFileMethod · 0.95

Calls 4

createConnectionMethod · 0.95
fileReadUtfMethod · 0.95
readFileMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected