Gets the remaining string tokens until an EOL/EOF is seen, concatenates them together, and converts the hex encoded data to a byte array. @param required If true, an exception will be thrown if no strings remain; otherwise null be be returned. @return The byte array containing the decoded strings, o
(boolean required)
| 642 | * @throws IOException An I/O error occurred. |
| 643 | */ |
| 644 | public byte [] |
| 645 | getHex(boolean required) throws IOException { |
| 646 | String s = remainingStrings(); |
| 647 | if (s == null) { |
| 648 | if (required) |
| 649 | throw exception("expected hex encoded string"); |
| 650 | else |
| 651 | return null; |
| 652 | } |
| 653 | byte [] array = base16.fromString(s); |
| 654 | if (array == null) |
| 655 | throw exception("invalid hex encoding"); |
| 656 | return array; |
| 657 | } |
| 658 | |
| 659 | /** |
| 660 | * Gets the remaining string tokens until an EOL/EOF is seen, concatenates |
no test coverage detected