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)
| 327 | * @throws IllegalArgumentException The name is invalid. |
| 328 | */ |
| 329 | public static Name |
| 330 | fromConstantString(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 |
no test coverage detected