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

Method findBlock

src/main/java/History/HistoryStorage.java:96–103  ·  view source on GitHub ↗
(String source, String needle)

Source from the content-addressed store, hash-verified

94 }
95
96 private String findBlock(String source, String needle){
97 String block = "";
98 int start =source.indexOf("<"+needle+">");
99 int end = source.indexOf("</"+needle+">");
100 if (start<0 || end<0)
101 return block;
102 return source.substring(start+3, end);
103 }
104
105 private String readFile(String arhPath){
106 FileIO f = FileIO.createConnection(arhPath);

Callers 1

importDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected