Returns the next item of the query as string. @return string or null @throws IOException I/O exception
()
| 92 | * @throws IOException I/O exception |
| 93 | */ |
| 94 | public final String next() throws IOException { |
| 95 | if(more()) { |
| 96 | final byte[] item = cache.get(pos); |
| 97 | cache.set(pos++, null); |
| 98 | if(out == null) return Token.string(item); |
| 99 | out.write(item); |
| 100 | } |
| 101 | return null; |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Returns the XQuery type of the current item (must be called after {@link #next()}). |