MCPcopy Create free account
hub / github.com/BaseXdb/basex / read

Method read

basex-core/src/main/java/org/basex/io/in/TextInput.java:143–151  ·  view source on GitHub ↗

Returns the next codepoint. @return next codepoint @throws IOException I/O exception

()

Source from the content-addressed store, hash-verified

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 {

Callers 1

cacheMethod · 0.95

Calls 2

validMethod · 0.95
readMethod · 0.65

Tested by

no test coverage detected