
bi = buffer;
}</BUG>
@Override
<BUG>public int read() throws IOException {
if(more) {
final int c = bi.read();
if(c != 0) return c;

more = false;
}
return -1;
</BUG>
}

package org.basex.io;
import java.io.IOException;
import java.io.InputStream;
public class WrapInputStream extends InputStream {
private final BufferInput bi;
private int curr;
public WrapInputStream(final BufferInput buffer) throws IOException {
bi = buffer;
read();
