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

Method fromString

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

Create a new name from a string and an origin. This does not automatically make the name absolute; it will be absolute if it has a trailing dot or an absolute origin is appended. This is identical to the constructor, except that it will avoid creating new objects in some cases. @param s The string

(String s, Name origin)

Source from the content-addressed store, hash-verified

298 * @throws TextParseException The name is invalid.
299 */
300public static Name
301fromString(String s, Name origin) throws TextParseException {
302 if (s.equals("@") && origin != null)
303 return origin;
304 else if (s.equals("."))
305 return (root);
306
307 return new Name(s, origin);
308}
309
310/**
311 * Create a new name from a string. This does not automatically make the name

Callers 15

createRecordMethod · 0.95
createRecordMethod · 0.95
runMethod · 0.95
addSearchMethod · 0.95
findWinMethod · 0.95
getNameMethod · 0.95
fromAddressMethod · 0.95
fromConstantStringMethod · 0.95
addSearchMethod · 0.95
findWinMethod · 0.95
addPrimaryZoneMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by 3

createRecordMethod · 0.76
createRecordMethod · 0.76