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

Method add

basex-core/src/main/java/org/basex/io/in/XMLInput.java:84–89  ·  view source on GitHub ↗

Inserts some bytes in the input stream. @param value values to insert @param spaces add spaces @return true if everything went alright @throws IOException I/O exception

(final byte[] value, final boolean spaces)

Source from the content-addressed store, hash-verified

82 * @throws IOException I/O exception
83 */
84 public boolean add(final byte[] value, final boolean spaces) throws IOException {
85 if(spaces) add(new NewlineInput(new IOContent(Token.cpToken(' '))));
86 add(new NewlineInput(new IOContent(value)));
87 if(spaces) add(new NewlineInput(new IOContent(Token.cpToken(' '))));
88 return ++exp < (inputs[0].size() + 1) * 10 && ip < 32;
89 }
90
91 /**
92 * Inserts a cached input buffer.

Callers

nothing calls this directly

Calls 4

cpTokenMethod · 0.95
copyMethod · 0.95
newCapacityMethod · 0.95
sizeMethod · 0.65

Tested by

no test coverage detected