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)
| 509 | * @see Name |
| 510 | */ |
| 511 | public Name |
| 512 | getName(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 |
nothing calls this directly
no test coverage detected