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

Method getFileSize

src/main/java/History/HistoryLoader.java:97–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 private long getFileSize() {
98 long size = -1;
99 FileIO file = FileIO.createConnection(fileName);
100 try {
101 InputStream is = file.openInputStream();
102
103 try {
104 size = file.fileSize();
105 } catch (Exception e) { }
106
107 is.close();
108 file.close();
109 } catch (IOException e1) {
110 try {
111 file.close();
112 } catch (IOException e2) { }
113 }
114 return size;
115 }
116
117 private void readByteBlock(long pos) {
118 FileIO f = FileIO.createConnection(fileName);

Callers 1

HistoryLoaderMethod · 0.95

Calls 4

createConnectionMethod · 0.95
openInputStreamMethod · 0.95
fileSizeMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected