Gets the next token from a tokenizer and decodes it as base32. @param b32 The base32 context to decode with. @return The byte array containing the decoded string. @throws TextParseException The input was invalid. @throws IOException An I/O error occurred.
(base32 b32)
| 692 | * @throws IOException An I/O error occurred. |
| 693 | */ |
| 694 | public byte [] |
| 695 | getBase32String(base32 b32) throws IOException { |
| 696 | String next = _getIdentifier("a base32 string"); |
| 697 | byte [] array = b32.fromString(next); |
| 698 | if (array == null) |
| 699 | throw exception("invalid base32 encoding"); |
| 700 | return array; |
| 701 | } |
| 702 | |
| 703 | /** |
| 704 | * Creates an exception which includes the current state in the error message |
no test coverage detected