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

Method ShowFile

src/main/java/io/file/browse/ShowFile.java:64–79  ·  view source on GitHub ↗
(String fileName, int type)

Source from the content-addressed store, hash-verified

62 int type;
63
64 public ShowFile(String fileName, int type) {
65 super(fileName);
66 this.type = type;
67 load(fileName);
68//#ifndef NOMMEDIA
69//# if (type == TYPE_MEDIA) {
70//# play(fileName);
71//# }
72//#endif
73 if (type == TYPE_IMAGE) {
74 view(fileName);
75 }
76 if (type == TYPE_TEXT) {
77 read(fileName);
78 }
79 }
80
81 private void load(String file) {
82 FileIO f = FileIO.createConnection(file);

Callers

nothing calls this directly

Calls 3

loadMethod · 0.95
viewMethod · 0.95
readMethod · 0.95

Tested by

no test coverage detected