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

Method getName

src/main/java/core/org/xbill/DNS/Tokenizer.java:511–523  ·  view source on GitHub ↗

Gets the next token from a tokenizer and converts it to a name. @param origin The origin to append to relative names. @return The next token in the stream, as a name. @throws TextParseException The input was invalid or not a valid name. @throws IOException An I/O error occurred. @throws RelativeName

(Name origin)

Source from the content-addressed store, hash-verified

509 * @see Name
510 */
511public Name
512getName(Name origin) throws IOException {
513 String next = _getIdentifier("a name");
514 try {
515 Name name = Name.fromString(next, origin);
516 if (!name.isAbsolute())
517 throw new RelativeNameException(name);
518 return name;
519 }
520 catch (TextParseException e) {
521 throw exception(e.getMessage());
522 }
523}
524
525/**
526 * Gets the next token from a tokenizer and converts it to a byte array

Callers

nothing calls this directly

Calls 4

_getIdentifierMethod · 0.95
fromStringMethod · 0.95
isAbsoluteMethod · 0.95
exceptionMethod · 0.95

Tested by

no test coverage detected