MCPcopy Create free account
hub / github.com/OpenDRG/DRG_Java / getLines

Method getLines

drg_group/changsha_2023/Base.java:25–30  ·  view source on GitHub ↗
(String dataFile)

Source from the content-addressed store, hash-verified

23 .collect(Collectors.toMap(x->x.substring(0,x.indexOf(" ")), x->x.substring(x.indexOf(" ")+1)));
24
25 private static Stream<String> getLines(String dataFile){
26 InputStream inputStream =Base.class.getResourceAsStream(
27 "/"+Base.class.getPackage().getName().replace(".", "/")+"/DATA/"+dataFile+".dat");
28 BufferedReader br= new BufferedReader(new InputStreamReader(inputStream,StandardCharsets.UTF_8));
29 return br.lines();
30 }
31 public static boolean has_cc(String index,String mainZd,String[] otherZd){
32 String cce="";
33 if (Base.CCE.containsKey(mainZd)){

Callers 1

BaseClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected