MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / parseUInt32

Method parseUInt32

src/main/java/core/org/xbill/DNS/Master.java:174–187  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

172}
173
174private long
175parseUInt32(String s) {
176 if (!Character.isDigit(s.charAt(0)))
177 return -1;
178 try {
179 long l = Long.parseLong(s);
180 if (l < 0 || l > 0xFFFFFFFFL)
181 return -1;
182 return l;
183 }
184 catch (NumberFormatException e) {
185 return -1;
186 }
187}
188
189private void
190startGenerate() throws IOException {

Callers 1

startGenerateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected