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

Method readToken

basex-core/src/main/java/org/basex/io/in/DataInput.java:40–46  ·  view source on GitHub ↗

Reads a token, represented by its compressed length and its byte array. @return byte array @throws IOException I/O Exception

()

Source from the content-addressed store, hash-verified

38 * @throws IOException I/O Exception
39 */
40 public byte[] readToken() throws IOException {
41 final int l = readNum();
42 if(l == 0) return Token.EMPTY;
43 final byte[] tmp = new byte[l];
44 for(int i = 0; i < l; ++i) tmp[i] = (byte) read();
45 return tmp;
46 }
47
48 /**
49 * Reads a double value.

Callers 15

readDoubleMethod · 0.95
readTokensMethod · 0.95
testReadTokenLongMethod · 0.45
testReadTokenMethod · 0.45
testCursorLongMethod · 0.45
readStoreMethod · 0.45
readMethod · 0.45
DiskDataMethod · 0.45
txtMethod · 0.45
readMethod · 0.45
readMethod · 0.45
readMethod · 0.45

Calls 2

readNumMethod · 0.95
readMethod · 0.65

Tested by 3

testReadTokenLongMethod · 0.36
testReadTokenMethod · 0.36
testCursorLongMethod · 0.36