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

Method fromConstantString

src/main/java/core/org/xbill/DNS/Name.java:329–337  ·  view source on GitHub ↗

Create a new name from a constant string. This should only be used when the name is known to be good - that is, when it is constant. @param s The string to be converted @throws IllegalArgumentException The name is invalid.

(String s)

Source from the content-addressed store, hash-verified

327 * @throws IllegalArgumentException The name is invalid.
328 */
329public static Name
330fromConstantString(String s) {
331 try {
332 return fromString(s, null);
333 }
334 catch (TextParseException e) {
335 throw new IllegalArgumentException("Invalid name '" + s + "'");
336 }
337}
338
339/**
340 * Create a new name from DNS a wire format message

Callers 2

ReverseMapClass · 0.95
TSIGClass · 0.95

Calls 1

fromStringMethod · 0.95

Tested by

no test coverage detected