Returns the next codepoint. @return next codepoint @throws IOException I/O exception
()
| 141 | * @throws IOException I/O exception |
| 142 | */ |
| 143 | @Override |
| 144 | public int read() throws IOException { |
| 145 | final int cp = decoder.read(this); |
| 146 | if(cp != -1 && !XMLToken.valid(cp)) { |
| 147 | if(fallback) return Token.REPLACEMENT; |
| 148 | throw new InputException(cp); |
| 149 | } |
| 150 | return cp; |
| 151 | } |
| 152 | |
| 153 | @Override |
| 154 | public final byte[] content() throws IOException { |