MCPcopy Create free account
hub / github.com/SquirrelJME/SquirrelJME / main

Method main

utils-dev/TodoProgression.java:129–158  ·  view source on GitHub ↗

Main entry point. @param __args Not used. @since 2018/03/29

(String... __args)

Source from the content-addressed store, hash-verified

127 * @since 2018/03/29
128 */
129 public static void main(String... __args)
130 throws IOException
131 {
132 TodoProgression tp = new TodoProgression();
133
134 // Read in inputs
135 try (BufferedReader br = new BufferedReader(
136 new InputStreamReader(System.in)))
137 {
138 String ln;
139 while (null != (ln = br.readLine()))
140 {
141 // Split forms
142 String[] fields = ln.split("[ \t]");
143
144 // Extract project name
145 String name = fields[1];
146 int ls = name.lastIndexOf('/');
147 if (ls >= 0)
148 name = name.substring(ls + 1);
149
150 // Register data
151 tp.register(fields[0], name, UUID.fromString(fields[2]),
152 Integer.parseInt(fields[3]));
153 }
154 }
155
156 // Write output
157 tp.write(System.out);
158 }
159
160 /**
161 * Generates a hashcode from the UUID.

Callers

nothing calls this directly

Calls 6

lastIndexOfMethod · 0.95
substringMethod · 0.95
registerMethod · 0.95
parseIntMethod · 0.95
writeMethod · 0.95
readLineMethod · 0.45

Tested by

no test coverage detected