(char[] input)
| 17 | public QuestionString(Map<String, Byte> tagMap) {this.tagMap = tagMap;} |
| 18 | |
| 19 | public byte[] encode(char[] input) throws IOException { |
| 20 | // tokenize |
| 21 | tokenize(input); |
| 22 | currentTokenIndex = 0; |
| 23 | |
| 24 | // parse |
| 25 | ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
| 26 | encodeTokens(outputStream); |
| 27 | return outputStream.toByteArray(); |
| 28 | } |
| 29 | |
| 30 | private void encodeTokens(ByteArrayOutputStream output) |
| 31 | throws IOException { |
no test coverage detected